Commit 92420713 by BellCodeEditor

save project

parent 99bb9a55
Showing with 11 additions and 0 deletions
fruit={"苹果":4,"橘子":3,"西瓜":7}
k=input("要查找的水果")
v=float(input("价格为"))
if k in fruit:
if v>fruit[k]:
print("我们不买!!!!!!!")
else:
print("快买"+k)
else:
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