Commit 5c0426ac by BellCodeEditor

save project

parent c7be6c56
Showing with 12 additions and 0 deletions
a={'苹果':2,'香蕉':1,'西瓜':10,'桃子':3,'梨':3}
b=input('你想要什么水果呀:')
c=input('今日水果价格:')
if b in a:
if int(c)>a[b]:
print('不买')
else:
print('买')
else:
a[b]=c
\ 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