Commit 38b6b9ad by BellCodeEditor

save project

parent 43b74e36
Showing with 8 additions and 5 deletions
list_hero={}
list_hero['猴十']=25
print(list_hero)
\ No newline at end of file
shop={'可乐':3,'雪碧':3 ,'奥利奥':5 ,'薯片':6 ,'麻辣条':2,'旺仔牛奶':3,'农夫山泉':2}
k=input('你要买什么?:')
if k in shop:
print('叮,'+k+'需要'+str(shop[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