Commit 28da3e72 by BellCodeEditor

save project

parent b867036c
Showing with 10 additions and 0 deletions
fruit={"苹果":10,"香蕉":4,"梨":6,"西瓜":3,"草莓":7}
k=input("要买的水果:")
v=input("今日"+k+"价钱:")
if int(v) < fruit[k]:
print("小明:水果降价了")
else:
if int(v) > fruit[k]:
print("小明:不买")
if int(v)==fruit[k]:
print("小明:一模一样")
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