Commit dfe3ff6b by BellCodeEditor

save project

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