Commit eb01f019 by BellCodeEditor

save project

parent 34a006c0
Showing with 14 additions and 0 deletions
item= {'cola':3,'mile':4,'农夫山泉':1,'辣条':3,'meat':2,'果冻':5,'乐事':5,'olo':10,"chocoate":6}
k=input('您需要什么东西:')
num=input('需要几个:')
if k in item:
i=item[k]*int(num)
print('叮咚~您的'+k+'需要支付'+str(i)+'元~')
else:
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