Commit 50e65dbb by BellCodeEditor

save project

parent 7f5abc8a
Showing with 11 additions and 0 deletions
fruit={'苹果':1,'香蕉':2}
j=input("今天有什么水果?")
v=input("请输入今天水果价格")
if j in fruit:
if int(v)>fruit[j]:
print("价格涨")
else:
print("价格跌了")
else:
fruit[j]=int(v)
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