Commit 5a550cac by BellCodeEditor

save project

parent dd569239
Showing with 2 additions and 0 deletions
...@@ -12,6 +12,8 @@ if k in cost: ...@@ -12,6 +12,8 @@ if k in cost:
if float(v)<cost[k]: if float(v)<cost[k]:
cost[k]=float(v) cost[k]=float(v)
print(k="降价了"+k+"只需"+v+"元") print(k="降价了"+k+"只需"+v+"元")
elif float(v)==cost[k]:
print("价格没变")
else: else:
print(k+"涨价了,我们不买") print(k+"涨价了,我们不买")
else: else:
......
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