Commit cc2e7551 by BellCodeEditor

save project

parent 1a55d773
Showing with 1 additions and 1 deletions
...@@ -8,9 +8,9 @@ name = input("名字:") ...@@ -8,9 +8,9 @@ name = input("名字:")
print("*"*30) print("*"*30)
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
if name in score: if name in score:
print("*"*30)
for k,v in score[name].items(): for k,v in score[name].items():
print(k,v) print(k,v)
print("*"*30)
else: else:
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