| Append (...)
| L.append (object)--Append object to end
|
| Count (...)
| L.count (value), integer--return number of occurrences of value
|
| Extend (...)
| L.extend (iterable)--extend list by appending elements from the iterable
|
| Index (...)
| L.index (value, [Start, [stop]]), integer-return first index of value.
| Raises valueerror if the value is not present.
|
| Insert (...)
| L.insert (Index, object)--Insert object before index
|
| Pop (...)
| L.pop ([index]), item-Remove and return item at index (default last).
| Raises indexerror If list is an empty or index is out of range.
|
| Remove (...)
| L.remove (value)--Remove first occurrence of value.
| Raises valueerror if the value is not present.
|
| Reverse (...)
| L.reverse ()--Reverse *in place*
|
| Sort (...)
| L.sort (Cmp=none, Key=none, Reverse=false)-stable sort *in place*;
| CMP (x, y)-1, 0, 1
It is important to note that:
Append () appends only one element, extend () can append an array;
Pop () deletes the element according to the subscript and returns the delete value; remove () is deleted by value and only the first one is deleted.
Common methods of Python list