Commit f476d3d6 by BellCodeEditor

save project

parent fce20885
Showing with 1 additions and 1 deletions
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
dict= {'百事可乐':3,'旺仔牛奶':4,'渔夫山泉':1,'威龙辣条':3,'康师傅烤肉':2,'喜之郎果冻':4,'乐事':5,'奥利给':10,'巧克力':6} dict= {'百事可乐':3,'旺仔牛奶':4,'渔夫山泉':1,'威龙辣条':3,'康师傅烤肉':2,'喜之郎果冻':4,'乐事':5,'奥利给':10,'巧克力':6}
k=input("你想要什么") k=input("你想要什么")
if k in dict: if k in dict:
print('你好'+k+'需要'+str([dict_k])+'元') print('你好'+k+'需要'+str(dict[k])+'元')
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