Commit 175ce28d by BellCodeEditor

save project

parent 83b73772
Showing with 14 additions and 0 deletions
abc={'樱桃'12,'梨子'3,'苹果'5}
b=input('你想要什么水果')
e=input('价格是:')
if d abc:
if int(e)>abc[d]
print("涨价了,我们不买了!")
else:
print("降价了")
else:
abc[b]=int(e)
\ 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