Commit 86318963 by BellCodeEditor

save project

parent 83b73772
Showing with 9 additions and 0 deletions
fruit={'香蕉':5,'葡萄':4,'苹果':3,'梨':6}
k=input('水果的名称')
v=input('水果的最新价格')
if k in fruit:
if int(v)<fruit[k]:
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