Commit c2903982 by BellCodeEditor

save project

parent b814e737
Showing with 3 additions and 9 deletions
cost={'苹果':5.2,'山竹':12.9,'香蕉':2,4,'荔枝':15,'葡萄':9.3} goods={'可口可乐':3,'旺仔牛逼奶':4,'农夫山贼':1}
k=input('请输入水果名称:') goods.pop
v=input('请输入水果价钱:') \ No newline at end of file
if float(v)<cost[k]:
cost[k]=float(v)
else:
print(k+'涨价了,我们不买')
\ 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