Commit 330338e0 by BellCodeEditor

save project

parent e9425585
Showing with 6 additions and 3 deletions
......@@ -6,8 +6,11 @@ score = {'王梓硕': student1, '谢坤辰': student2, '丸子老师': student3,
# 查询并打印出输入的名字对应的所有科目的成绩
while True :
name=input("你TM要查谁的成绩?")
ji=score[name]
for k,v in ji.items():
print(k,v)
if name in score:
ji=score[name]
for k,v in ji.items():
print(k,v)
else:
print("你TM有病吧,根本就没有这个人!!!你TM***************")
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