Commit ff1dfe59 by BellCodeEditor

save project

parent 8b438829
Showing with 12 additions and 0 deletions
dict={'雪梨':10,'西瓜':20,'香蕉':12,'灵芝':100,'王母娘娘的蟠桃':1000000000}
a=input("水果名")
b=input("价钱")
b=int(b)
if a in dict:
if b<dict[a]:
dict[a]=b
print("已更新"")
else:
print("没变")
else:
dict[a]=b
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