Commit 7301b60c by BellCodeEditor

save project

parent 8f6225c9
Showing with 11 additions and 8 deletions
......@@ -2,10 +2,13 @@ student1={'语文':99,'数学':96,'英语':91}
student2={'语文':100,'数学':100,'英语':100}
student3={'语文':98,'数学':90,'英语':89}
score={'小贝':student1,'悟空':student2,'诺依':student3}
name=input('姓名:')
print('*'*10)
if name in score:
for k,v in score[name].items():
print(k,v)
else:
print('姓名错了')
\ No newline at end of file
while True:
name=input('姓名:')
print('*'*10)
if name in score:
for k,v in score[name].items():
print(k,v)
elif name==a:
break
else:
print('姓名错了')
\ No newline at end of file
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