Commit 2e6f0766 by BellCodeEditor

save project

parent 83b73772
Showing with 50 additions and 0 deletions
dict={'香蕉':99999,'西瓜':99}
k=input('输入水果名:')
v=input('输入'+k+'的价格')
if k in dict:
if int(v)<dict[k]:
dict[k]=int(v)
print('最低价格已更新')
else:
print('最低价格没变')
else:
dict[k]=int(v)
print('新的水果已添加')
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