Commit 30d82a77 by BellCodeEditor

save project

parent 4ed40fbc
Showing with 13 additions and 0 deletions
cost = {'苹果':5.2, '山竹':12.9, '香蕉':'2.4'}
k = input('请输入水果名称:')
v = input('请输入水果价格:')
if k in cost :
if int(v)<cost[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