Commit 1b864ae2 by BellCodeEditor

save project

parent de36678a
Showing with 0 additions and 12 deletions
cost = {"苹果":5.2,"香蕉":12.9}
k = input("请输入水果名称")
v = input("请输入水果价格")
#补充第一个条件
#补充第二个条件
if float(v)+input(k) #更新价格
print(k+'降价了'+v+"元")
else:
print("价格没变")
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