Commit e3856ec9 by BellCodeEditor

save project

parent d25ad832
Showing with 1 additions and 1 deletions
......@@ -2,6 +2,6 @@
dict= {'可口可乐':30,'旺仔牛奶':40,'农夫山泉':10,'辣条':30,'巴西烤肉':20,'果冻':40,'乐事':50,'奥利奥':100,'巧克力':60}
k=input('请问你要什么呀~~~?')
if k in dict:
print(str(dict[k]),'元,付钱')
print(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