Commit 74b3e301 by BellCodeEditor

save project

parent 04eaf436
Showing with 10 additions and 0 deletions
f={"苹果":5,"梨子":3,"桃子":4}
n=input("水果的名字是:")
g=input("水果的价格是:")
if n in f:
if int(g)>f[n]:
f[n]=g
else:
f[n]
print(f)
\ 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