Commit 923e60ae by BellCodeEditor

save project

parent 8a341b9d
Showing with 3 additions and 6 deletions
...@@ -5,11 +5,8 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} ...@@ -5,11 +5,8 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
n = input("名字:") n = input("名字:")
if n in score: m=score[n]
m=score[n] for a,d in m.items():
for a,d in m.items(): print(a,d)
print(a,d)
else:
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