Commit 9fcf87e3 by BellCodeEditor

save project

parent c2c22f77
Showing with 11 additions and 2 deletions
...@@ -8,7 +8,16 @@ name = input("名字:") ...@@ -8,7 +8,16 @@ name = input("名字:")
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
k = score[name] k = score[name]
while True:
print("输入名字,退出请按q")
if name in score():
for k,i in score.items():
print(k+str(y))
print("*"*30)
elif name == 'q':
break
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