Commit f5222c84 by BellCodeEditor

auto save

parent 4f9584bf
Showing with 6 additions and 2 deletions
...@@ -5,4 +5,8 @@ print(len(list_hero))#长度:10 ...@@ -5,4 +5,8 @@ print(len(list_hero))#长度:10
print(len(dict_hero))#长度:5 print(len(dict_hero))#长度:5
#列表(长度)>字典(长度) #列表(长度)>字典(长度)
#列表用中括号([]) #列表用中括号([])
#字典用大括号({}) #字典用大括号({})
\ No newline at end of file dict_hero['赵一']=31
print(dict_hero['赵一'])
dict_hero['姜肇鑫']=50
print(dict_hero)
\ 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