Commit 3e1dfe61 by BellCodeEditor

save project

parent 8df5315b
Showing with 9 additions and 4 deletions
......@@ -2,10 +2,14 @@ student1={"语文":91,"数学":88,"英语":85}
student2={"语文":94,"数学":82,"英语":81}
student3={"语文":93,"数学":81,"英语":82}
score={'小王':student1,'小李':student2,'小贝':student3}
b=input("你想查谁的成绩")
print("*"*20)
if b in score:
while True:
print("退出请按q")
b=input("你想查谁的成绩")
print("*"*20)
if b in score:
for i ,a in score[b].items():
print(i,a)
else:
elif b=="q":
break
else:
print("没有这个人")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment