Commit ab3f1400 by BellCodeEditor

save project

parent 8265214b
Showing with 7 additions and 6 deletions
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~
dict= {'可世可乐':3,'旺仔牛逼奶':4,'农夫山闲':1,'辣条':3,'巴西烤米共田':2,'我冻':4,'乐世':5,'奥利给':10,'巧克力':6}
1= {'可世可乐':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)
if k in 1:
if float(v)<1[k]
1[k]=float(v)
print(k+'降价了,现价'v+v'元')
else:
print(k+'降价了,我们不买')
else:
cost[k]=float(V)
1[k]=float(V)
print(k+'价钱'v+v'已经上传')
1.pop('农夫山闲')
\ 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