Commit 61321679 by BellCodeEditor

save project

parent e37f0798
Showing with 11 additions and 0 deletions
ppp={"西瓜":10,"苹果":4,"桃子":6,"柠檬":3,"柿子":7}
a=input('什么水果?')
b=input('多少钱?')
if a in ppp:
if int(b)>ppp[a]:
print("涨价了,不买。")
else:
print("降价了,买。")
else:
ppp[a]=int(b)
\ 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