Commit bf9b4cc7 by BellCodeEditor

save project

parent 4776148c
Showing with 7 additions and 0 deletions
dict={'毛豆':5,'棒棒糖':0.5,'酸奶':9.9}
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