Commit a5a2e414 by BellCodeEditor

save project

parent 7c3858ab
Showing with 5 additions and 7 deletions
dict = {"可口可乐":2,"青梅绿茶":3,"魔鬼辣条":2,"棒棒糖":0.5,"虾条":1,"洋葱圈":1}
o=input("您要买什么呀?")
if o in dict:
print("叮咚~您的"+o+"需要支付"+str(dict[o])+"元~")
else:
print("神奇百货没有您要的商品,尽情期待~")
\ No newline at end of file
dict={'怀疑哦':10,'给v就':1,'会突然':2}
print(dict)
print(dict['会突然'])
dict['怀疑哦']=8888000
print(dict)
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