1.count(self, value, /) Return number of occurrences of value.
2.extend(self, iterable, /) ?Extend list by appending elements from the iterable.
3.index(self, value, start=0, stop=9223372036854775807, /) Return first index of value.?Raises ValueError if the value is not present.
4.insert(self, index, object, /) Insert object before index.
5.pop(self, index=-1, /) Remove and return item at index (default last). Raises IndexError if list is empty or index is out of range.
6.remove(self, value, /) ?Remove first occurrence of value. Raises ValueError if the value is not present.
7.reverse(self, /) Reverse *IN PLACE*.
1.count:统计指定数值出现的次数
?
?2.extend:扩充元素
?
?
3.index:只返回第一个值
?
4.insert:插入对象
?
?
5.pop:移除列表中的一个元素
?
6.remove:删除指定元素
?
7.reverse:反转列表
?
?
?
?
?
?
|