Commit 54bae562 by BellCodeEditor

auto save

parent 4033e492
Showing with 21 additions and 7 deletions
cost= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
k=input("请输入名称")
v=input("请输入价钱")
if k in cost:
if float(v)<cost[k]:
cost[k]=float(v)
prink(k+"降价,现价"+v+"元")
else:
prink(k+"涨价,不买了")
else:
cost[k] = float(v)
prink(k+"的价钱"+v+"元以上传~")
\ No newline at end of file
b=['袁术''夏侯挺''曹操''关羽']
b.remove('关羽')
print(b)
a=[]
dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
j=input("你要买什么?")
if j in dict:
prink("叮咚~你的"+k+"需要支付"+str(dict[k])+"元~")
else:
prink("神奇百货暂无你想要的东西,敬请期待~")
\ 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