Commit 22ca35d2 by BellCodeEditor

save project

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