1、insert 插入
-
在指定索引位置插入数据
image.png
2、append插入
-
append是直接插入到末尾
image.png
3、extend
-
把列表2追加到列表1中
image
4、
-
列表[索引] = 数据 用来修改指定索引的数据
image
5、del
-
del 列表[索引] 删除指定索引的数据
image
6、pop
-
列表.pop 删除末尾的数据
image -
列表.pop(索引) 删除指定索引的数据
image
7、clear
-
列表.clear 清空列表
image
8、len
-
len(列表) 统计列表长度
image
9、count
-
列表。count(数据)统计数据在列表中出现的次数
image
10、sort
- 列表.sort(数据)升序
image
11、reverse
-
列表.sort(reverse=True) 降序
image