Commit 6e54becf by BellCodeEditor

save project

parent 83b73772
Showing with 11 additions and 0 deletions
fruit={'苹果':4,'橘子':3,'西瓜':5,'樱桃'15}
k=input('要查找的水果')
v=float(input('今日价格为'))
if k in fruit:
if v>fruit[k]:
print('涨价了,不买!')
else:
print('快买,奥里给!')
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