Commit 5933aa01 by BellCodeEditor

auto save

parent 9911a141
Showing with 3 additions and 1 deletions
...@@ -3,7 +3,8 @@ dict= {'可口可乐':3,'旺仔牛逼奶':4,'农夫山泉':1,'辣条':3,'巴西 ...@@ -3,7 +3,8 @@ dict= {'可口可乐':3,'旺仔牛逼奶':4,'农夫山泉':1,'辣条':3,'巴西
k=input('你想要什么么') k=input('你想要什么么')
v=input('shuiguojage') v=input('shuiguojage')
if k in dict: if k in dict:
if floa if float(v)<cost[k]
print('叮咚~你的'+k+'需要支付'+str(dict[k])+'元') print('叮咚~你的'+k+'需要支付'+str(dict[k])+'元')
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