Commit 2a2d3a6f by BellCodeEditor

auto save

parent f132add8
Showing with 7 additions and 0 deletions
dict={'可乐':5,'牛奶':3,'面包':7,'糖':1,'果冻':2}
k=input('你想买什么?')
if k in dict :
print('你的'+k+'需要支付'+str(dict[k])+'元~')
else:
print('没有这个,敬请期待~')
\ 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