Commit ff50a539 by BellCodeEditor

save project

parent dafbec4b
Showing with 7 additions and 12 deletions
cost={'苹果': 5,'香蕉': 3,'李子': 6,';荔枝': 10,'甘蔗': 8,'葡萄': 5,'榴莲': 7,'桃子': 6,'山竹': 7} num=9
k=input("请输入水果名称:") float_num=3.1415926
v=input("请输入水果价格:") name="悟空"type
if k in cost: goods=["雪碧","可口可乐","咖啡"]
if float(v)<cost[k]:
cost[k]=flots(v) print(type(goods))
print(k+'降价了,现降'+v+'元') \ No newline at end of file
else:
print(k+'涨价了,我们不买')
else:
cost[k] = float(v)
print(k+'的价钱'+v+'元已上传~')
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