Commit 92184446 by BellCodeEditor

save project

parent 65b8cde5
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+'降价了,现价'+v+'元') print(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