Commit 326cda0e by BellCodeEditor

save project

parent 1f37a9e5
Showing with 13 additions and 0 deletions
fruit={'苹果':1,'香蕉':3,'屎':2,'桃子':4}
k=input('您买的什么水果啊?')
v=input('今日水果多少钱啊?')
if k in fruit:
if int(v)>fruit[k]:
fruit[k]=int(v)
print("今日水果涨价了")
else:
print("今日水果没涨价")
else:
fruit[k]=int(v)
print('今日'+k+str(fruit['苹果'])+'元')
\ 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