Commit 50a025e3 by BellCodeEditor

save project

parent 83b73772
Showing with 11 additions and 0 deletions
asd={'苹果':'3元一斤','橘子':'5元一斤'}
m=input("你要什么水果啊?")
x=input("多少钱一斤啊?")
if m in asd:
if int(x)>asd[m]:
print('涨价了,我们不买')
else:
print('降价了')
else:
asd[m]=int(x)
\ 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