Commit cfdab7bb by BellCodeEditor

save project

parent f1ffc88d
Showing with 12 additions and 0 deletions
fruit={"西瓜":250,"苹果":520}
a=input("什么水果?")
b=input("今日价格?")
if a in fruit:
if int(b)>fruit[a]:
print("不买了!")
else:
print("多来点!")
else:
fruit[a]=int(b)
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