Commit d7ce3ef2 by BellCodeEditor

save project

parent 8d23c731
Showing with 8 additions and 4 deletions
goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
info = goods[key]
for k,v in info.items():
print(k,v)
\ No newline at end of file
name = input("名字:")
if name in score:
info = goods[key]
for k,v in info.items():
print(k,v)
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