Commit a56e9de3 by BellCodeEditor

save project

parent 03826cbd
Showing with 6 additions and 5 deletions
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
dict_hero={'YER':30,'URY':10,'GFD':40} dict_hero={'YER':30,'URY':10,'GFD':40}
dict_hero['URY']=20 dict_hero['URY']=20
dict_hero = group dict_hero = group
print(dict_hero)['URY'] print(dict_hero)
# 直接运行以下代码,说说你的发现: # 直接运行以下代码,说说你的发现:
list_hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98] list_hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98]
dict_hero = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98} dict_hero = {'可乐':30,'雪碧':37,'芬达':52,'农夫三拳':89,'圣水':98}
print(len(list_hero)) k = input('你想买破壁东西')
print(len(dict_hero)) if k in dict_hero:
\ No newline at end of file print(dict_herostr[k])
\ 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