Commit dfe3ff6b by BellCodeEditor

save project

parent 51e42ddd
Showing with 7 additions and 8 deletions
dist_hero={'猴三':11,'猴一':6,'猴五':9,'猴队长':8,'猴七':6}
print(dist_hero)
print(dist_hero['猴七'])
dist_hero['猴队长']=777
print(dist_hero)
dist_hero['猴十']=25
print(dist_hero)
\ No newline at end of file
dist=('可口可乐':3,'旺仔牛奶':4'农夫山泉':'辣条'9:'巴西烤肉'66:'果冻'3:'奥利奥'444:)
k=input(你想买什么呀)
if k in dist:
print("叮当,你的'+k+'需要支付'+dist[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