Commit 0d12223b by BellCodeEditor

save project

parent 58bec282
Showing with 2 additions and 0 deletions
...@@ -7,6 +7,8 @@ if k in cost: ...@@ -7,6 +7,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+'降价了,现价'+str(v)+'元') print(k+'降价了,现价'+str(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