Commit 852750b6 by BellCodeEditor

save project

parent 93355357
Showing with 3 additions and 2 deletions
...@@ -3,8 +3,9 @@ ...@@ -3,8 +3,9 @@
cost= {'AK-47':5200,'迫击炮':129000,'手雷':24,'AUG':4100,'98k':11000} cost= {'AK-47':5200,'迫击炮':129000,'手雷':24,'AUG':4100,'98k':11000}
k=input('请输入名称:') k=input('请输入名称:')
v=input('请输入价钱:') v=input('请输入价钱:')
if h if k in cost:
if # ?: if int(v)<cost[k]:
cost[k]=int(v)
# ?更新价钱 # ?更新价钱
print(k+'降价了,现价'+v+'元') print(k+'降价了,现价'+v+'元')
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