Commit c7aa5a8a by BellCodeEditor

save project

parent 62043f20
Showing with 13 additions and 0 deletions
score = {"apple":30,"pear":25,"banana":100}
k = input("啥名字:")
v = input("多少钱:")
if k in score:
if int(v)>score[k]:
score[k]=int(v)
print("涨价啦!")
else:
print("降价啦!")
else:
score[k] = int(v)
print("上架了!")
\ 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