Commit 9710b8c4 by BellCodeEditor

save project

parent 545c1a57
Showing with 5 additions and 2 deletions
......@@ -5,8 +5,11 @@ score = {'沙壁': student1, '草泥马': student2, '握草': student3}
name = input("名字:")
for k,v in score[name].items():
print(k,v)
if name in score:
for k,v in score[name].items():
print(k,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