Commit 92fe29f8 by BellCodeEditor

save project

parent 6d922665
Showing with 11 additions and 0 deletions
cost = {'草莓':1,'香蕉':2,'桃子':1.5,'鸭梨':2,'龙荔':5,'荔枝':6.66,'苹果':1.23476514382209}
name = input('name')
prize = input('prize')
if name in cost:
if int(prize) <= cost[name]:
print('买')
else:
print('不买')
else:
cost[name] = prize
print('头回见')
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