css', 'js', 'html', 'node']
In [36]: arr[2:4]=['pc','wd']
In [37]: arr
Out[37]: ['c', 'python', 'pc'..., 'wd', 'html', 'node']
9.切片的赋值功能可以插模拟入和删除元素
In [39]: arr
Out[39]: ['c', 'python', 'pc', 'wd', 'html'..., 'node']
In [40]: arr[1:1]= ['pc','wd']
In [41]: arr
Out[41]: ['c', 'pc', 'wd', 'python', 'pc', 'wd'..., 'html', 'node']
In [42]: arr[2:3]= []
In [43]: arr
Out[43]: ['c', 'pc', 'python', 'pc', 'wd', 'html...46]: arr
Out[46]: ['wd', 'woniu', 'lp', 'suiji']
11.count统计list中某个元素出现的次数
In [47]: arr= [2,3,4,5,6,7,8,9,43,24,234,423,423,12,2,3,4,52,2