Commit e1481ba8 by BellCodeEditor

save project

parent 13fb1fb4
Showing with 13 additions and 0 deletions
cost={'苹果':5.2,'山竹':12.9,'香蕉':2.4}
k=input("你要啥")
x=input("价格")
if k in cost:
if float(x)<cost[k]:
cost[k]=float(x)
print(k+"降价了,现在"+x+"元")
else:
print("不买了")
else:
cost[k]=float(x)
print(k+"的价格"+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