Commit 1a82cd20 by BellCodeEditor

save project

parent 83b73772
Showing with 17 additions and 0 deletions
fruit={'苹果':4,'橘子':3,'西瓜':15,'火龙果':20}
y=input('要查找的水果')
v=flaot(input('今日的价格为'))
if k in fruit:
if v>fruit[k]
\ No newline at end of file
fruit={'苹果':4,'橘子':3,'西瓜':15,'火龙果':20}
y=input('请问您要查找什么水果')
v=float(input('今日的价格为'))
if y 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