Commit 326b0eea by BellCodeEditor

save project

parent 641bf042
Showing with 14 additions and 0 deletions
fruit = {'apple':5,'banana':3}
k = input("你要啥水果")
v = input("今天的水果价格")
if k in fruit:
print(fruit[k])
if int(v) > fruit[k]:
print("涨价了")
else:
print("减价了")
else:
fruit[k]=v
\ 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