Commit 149de77a by BellCodeEditor

auto save

parent 404b7159
Showing with 0 additions and 8 deletions
dict={'汪仔牛奶':4,'可口可乐':3,'农夫山泉':1}
k=input("你想要什么?")
if k in dict:
print(k+'需要支付'+str(dict[k]))
else:
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