Commit acbbb250 by BellCodeEditor

save project

parent 3d523c63
Showing with 4 additions and 1 deletions
...@@ -4,11 +4,14 @@ student3 = {'语文': 95, '数学': 100, '英语': 93} ...@@ -4,11 +4,14 @@ student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3} score = {'悟空': student1, '诺依': student2, '小贝': student3}
while True: while True:
key=input('名字') key=input('名字')
print('*'*30)
if key in score: if key in score:
info=score[key] info=score[key]
for k,v in info.items(): for k,v in info.items():
print('*'*30)
print(k,v) print(k,v)
print('*'*30)
if key=='p':
break
else: else:
print('名字错误,请重新输入') 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