Commit 98546312 by BellCodeEditor

save project

parent 8d68cdff
Showing with 2 additions and 0 deletions
......@@ -8,12 +8,14 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
# 查询并打印出输入的名字对应的所有科目的成绩
while True:
print('输q就退出')
a=input('名字:')
if a in score:
b=score[a]
for i,k in b.items():
print(i,k)
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