Commit 2ef146f5 by BellCodeEditor

save project

parent 327a119b
Showing with 13 additions and 0 deletions
fruit={"apple":12,"banana":23,"orange":15,"pear":17,"strawberry":45}
a = input()
b = input()
b=int(b)
if a in fruit:
if b>fruit[a]:
print("涨价了")
if b<fruit[a]:
print("降價了")
else:
fruit[a] = b
print(fruit)
\ 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