Commit 1becb13f by BellCodeEditor

save project

parent 2f1da706
Showing with 11 additions and 6 deletions
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~ # 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~
dict= {'可世可乐':3,'旺仔牛逼奶':4,'农夫山闲':1,'辣条':3,'巴西烤米共田':2,'我冻':4,'乐世':5,'奥利给':10,'巧克力':6} dict= {'可世可乐':3,'旺仔牛逼奶':4,'农夫山闲':1,'辣条':3,'巴西烤米共田':2,'我冻':4,'乐世':5,'奥利给':10,'巧克力':6}
j=input("你要买什么?") k=input('输入水果')
if j in dict: v=input('输入水果价钱')
prink('巧克力'(dict[j])) if k in cost:
if float(v)<cost[k]
cost[k]=float(v)
print(k+'降价了,现价'v+v'元')
else:
print(k+'降价了,我们不买')
else: else:
prink('神奇百货暂时未有你需要的物品,敬请期待') cost[k]=float(V)
\ No newline at end of file print(k+'价钱'v+v'已经上传')
\ 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