Commit 40c28010 by BellCodeEditor

save project

parent 48cb971d
Showing with 21 additions and 0 deletions
s1={'c':110,'m':110,'e':110}
s2={'c':105.5,'m':107,'e':106.5}
s3={'c':103,'m':105,'e':108}
score={'Lucas':s1,'tom':s2,'Sam':s3}
while True:
print("请输入查询名字,退出输入q")
name=input("名字:")
print("*"*30)
if name in score:
score=score[name]
for k,v in score.items():
print(k,v)
print("*"*30)
elif name=="q":
break
else:
print("查询错误,请重新输入")
print("*"*30)
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