Commit 38185443 by BellCodeEditor

save project

parent 8423bc9d
Showing with 5 additions and 5 deletions
...@@ -7,15 +7,15 @@ while True: ...@@ -7,15 +7,15 @@ while True:
name = input("名字:") name = input("名字:")
print('*'*30) print('*'*30)
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
if if name in score:
a=score[name] a=score[name]
for k,v in score.items(): for k,v in a.items():
print(a) print(k,v)
print("*"*30) print("*"*30)
elif name=="q": elif name=="q":
break break
else: else:
print("查询结束,请重新输入") print("查询错误,请重新输入")
print("*"*30) print("*"*30)
print("程序结束") print("程序结束")
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