Commit ae879d75 by BellCodeEditor

auto save

parent 080072c3
Showing with 4 additions and 3 deletions
......@@ -7,15 +7,16 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
# 查询并打印出输入的名字对应的所有科目的成绩
print('*'*30)
while True:
a=input("您要查询谁")
print('*'*30)
#b=score[a]
if a in score:
for k,i in score[a].items():
print(k,i)
else:
print("错误")
print('*'*30)
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