Commit 5cba3640 by BellCodeEditor

save project

parent 941956b5
Showing with 13 additions and 5 deletions
goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6} goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
name = input("名字:")
if name in score: while True:
info = goods[key] print("请输入要查询的名字,退出请输入q")
for k,v in info.items(): name = input("名字:")
print(k,v) print("*"*30)
if name in score:
info = goods[key]
for k,v in info.items():
print(k,v)
print("*"*30)
elif name == 'q':
break
else: else:
print("查询错误,请输入正确的名字") 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