Commit fcf7decd by BellCodeEditor

save project

parent f0c715f8
Showing with 18 additions and 0 deletions
a1={'语':100,'数':99,'英':98}
a2={'语':97,'数':96,'英':95}
a3={'语':94,'数':93,'英':92}
score={'猴哥':a1,'猴子':a2,'猴孙':a3}
while True:
print('你叫什么,退出查询按q')
name=input('名字:')
print('*'*10)
if name in score:
print('*'*10)
score=score[name]
for k,v in score.items():
print(k,v)
elif name=='q':
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