Commit 50803c35 by BellCodeEditor

save project

parent 83b73772
Showing with 9 additions and 0 deletions
gj={'西瓜':9,'葡萄':7,'苹果':5}
s=input('水果:')
q=input('价钱:')
if s in gj:
if int(q)<gj[s]:
gj[s]=int(q)
print('新价格:')
else:
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