Commit e9a4ed75 by BellCodeEditor

save project

parent 9ed85b40
Showing with 8 additions and 0 deletions
dict={'果冻':1,'可口可乐':5,'奥利奥':3,'三楂':1,'猪肉铺':2,'雪碧':3}
k=input("你想要买什么")
p=input("你要买几份")
if k in dict:
print("叮咚,你的",k,'出来了,请你支付',str(dict[k]*p))
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