Commit 45353699 by BellCodeEditor

save project

parent e69cd407
Showing with 11 additions and 4 deletions
score=('悟空':34,'小贝':100,'诺依':100 score=('悟空':34,'小贝':100,'诺依'123)
name=input("请输入要查询的名字") while True:
print=("*"*"30) print("请输入要查询的名字,推出请输入q")
if name in score
print=("*"*30)
if name in score
info=score["name"] info=score["name"]
for k,v in info times(): for k,v in info times():
print(k,v) print(k,v)
elif name=='q':
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