Commit 775d755a by BellCodeEditor

save project

parent 01d2199e
Showing with 5 additions and 2 deletions
...@@ -6,7 +6,10 @@ if name in score: ...@@ -6,7 +6,10 @@ if name in score:
name = input("名字:") name = input("名字:")
for c,v in score[student1],[student2],[student3].items(): if name in socre()
print(c,v) for c,v in score[student1],[student2],[student3].items():
print(c,v)
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