Commit e1c8427c by BellCodeEditor

save project

parent d00a0148
Showing with 8 additions and 3 deletions
......@@ -7,11 +7,15 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
# 查询并打印出输入的名字对应的所有科目的成
a=input("请输入名字:")
while True:
print("按q结束")
a=input("请输入名字:")
if a in score:
if a in score:
d = score[a]
for b,s in d.items():
print(b,s)
else:
elif name == "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