Commit 8d8e8e04 by BellCodeEditor

save project

parent 58fcb9ac
Showing with 6 additions and 2 deletions
dict={} dict={'可乐':3,'mike':4,'农夫':1,'辣条':3,'meat':2,'果冻':4,'乐事':5,'奥利奥':10,'chocoate':6}
\ No newline at end of file k=input('你要什么')
if k in dict:
print('叮咚~您的'+k+'需要支付'+str(dict[k])+'元')
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