Commit de7aaa51 by BellCodeEditor

save project

parent 2653b45e
Showing with 12 additions and 0 deletions
dict={'苹果':2,'梨':1,}
dict={'苹果':2,'梨':1,}
k=input('你要什么?')
v=input('现在多少钱')
if k in dict:
if int(v)<dict[k]:
print('妈妈,'+k+'降价了')
else:
print('妈妈,'+k+'涨价了')
else:
dict[k]=int(v)
\ 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