Commit 2612bfe6 by BellCodeEditor

auto save

parent f0c715f8
Showing with 30 additions and 0 deletions
s1={'数学':90,'英语':98,'语文':92}
s2={'数学':91,'英语':97,'语文':99}
s3={'数学':100,'英语':95,'语文':95}
score={'小贝':s1,'悟空':s2,'诺依':s3}
while True:
print('退出请按q')
name=input('名字:')
if name in score:
info=score[name]
print('*'*30)
for k,v in info.items():
print(k,v)
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