Commit 11bdf1e5 by BellCodeEditor

save project

parent 9856af29
Showing with 12 additions and 0 deletions
firut={'香蕉':5,'西瓜':10,'橘子':3}
n=input('你要什么水果?')
m=input('多少钱?')
if n in firut:
if int(m)<firut[n]:
firut[n]=int(m)
print('水果降价了')
print(firut)
else:
print('涨价了,我们不买')
else:
firut[n]=int(m)
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