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}
k=input("请输入水果名称:")
v=input("请输入水果价格:")
if k in cost:
if float(v)<cost[k]:
cost[k]=flots(v)
print(k+'降价了,现降'+v+'元')
else:
print(k+'涨价了,我们不买')
else:
cost[k] = float(v)
print(k+'的价钱'+v+'元已上传~')
num=9
float_num=3.1415926
name="悟空"type
goods=["雪碧","可口可乐","咖啡"]
print(type(goods))
\ 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