Commit 5af374d6 by BellCodeEditor

save project

parent aea3fe24
Showing with 14 additions and 0 deletions
price={'苹果':3,'榴莲':70,'山竹':10,'桃子':3,'草莓':8,'屎':1000}
k=input("你要买什么?")
v=input("今日水果多少钱?")
if k in price:
if int(v)>price[k]:
price[k]=int(v)
print('你买的水果涨价了')
else:
print('今天的水果没涨价')
else:
price[k]=int(v)
print('今日'+k+'价格为'+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