Commit 7f9a6465 by BellCodeEditor

save project

parent 83b73772
Showing with 15 additions and 0 deletions
dict={"西瓜":50,"葡萄":20,"香蕉":15}
k=input('输入水果')
v=("输入xxx水果的价钱")
if i in dict:
if int(v)<dict[i]:
dict[i]=int(v)
print("最低价格已更新")
else:
print("最低价钱没更新")
else
dict[i]=int(v)
\ 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