1= [,,,,=['4ZhangYang', '#!Guyun', 'xXiangPeng', 'ChenRonghua', 'XuLiangChen']['4ZhangYang', '#!Guyun', 'xXiangPeng', 'ChenRonghua', 'XuLiangChen']
1-12] = ---> [, , , , ---> [, , , , 1-2= [,,,[,],,=,2] = 3][0] = ---> [, , , [, ], , ---> [, , , [, ], ,
2>>> a=1>>> b=>>> a=2>>>1>>> a=[1,2,3>>> b=>>> a[1]=555>>>1, 555, 3= [,,,[,],,=2] = 3][0] = ---> [, , , [, ], , ---> [, , , [, ], , =---> [, , , [, ], , ---> [, , , [, ], ,
3 如果想做列表的循环3-1for i in names:print(i)--->4ZhangYang#!GuyunxXiangPeng['alex', 'jack']ChenRonghuaXuLiangChen3-2 有步长的切片names = ["4ZhangYang","#!Guyun","xXiangPeng",["alex","jack"],"ChenRonghua","XuLiangChen"]print(names[0:-1:2])--->��̾,̾��; ['4ZhangYang', 'xXiangPeng', 'ChenRonghua']0 可以省略,变为print(names[::2])如果去掉步长,print(names[:]) 代表 0 到 -1