Commit 52fe509a by BellCodeEditor

save project

parent 1458f249
Showing with 8 additions and 6 deletions
# 直接运行以下代码,说说你的发现: # 直接运行以下代码,说说你的发现:
list_hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98] dict = {'辣条':0.5,'饼干':5,'旺仔牛奶':5,'薯片':3,'棒棒糖':1}
dict_hero = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98} j=input("傻逼,你要买什么?")
print(len(list_hero)) if j in dict:
print(len(dict_hero)) print("你要的商品"+j+"需要人民币"+str(dict[j])+"元")
print(dict_hero['丁二'])
\ No newline at end of file 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