Commit db8b8fa8 by BellCodeEditor

save project

parent ad8f0250
Showing with 6 additions and 3 deletions
...@@ -3,8 +3,11 @@ list_hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98] #列表 ...@@ -3,8 +3,11 @@ 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)) #结果10 print(len(list_hero)) #结果10
print(len(dict_hero)) #结果5 print(len(dict_hero)) #结果5
dict_hero('王猛'[90]) # dict_hero('王猛'[90])
print(dict_hero) # print(dict_hero)
list_hero[3]=50 # list_hero[3]=50
# print(list_hero)
list_hero['王老师']='0.0000000000000000000000000000000000000000000000000000000000001'
print(list_hero) print(list_hero)
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