1.append () added to the end of the list of new elements
2.extend () is added at the end of disposable another plurality of values in the list
3.Insert (a, b) adding a standard element b at the lower, does not cover the original data, the original data back extended
4.pop (x) Removes the element at the index specified in the list, the last element is removed by default, and returns the deleted data. Parameter x represents subscript default x = list [-1], represents the last indexing of list
5.remove () remove an element in the list of matching results
6.clear () to clear the list of all data
7.index () to find the value of an index value of the first match from the list
8.len () to determine the number of elements in the list
9.max () Gets a list of maximum
10.min () Get a list of the minimum value
11.count () Check the number of elements in the list appear
12.reverse () reverse
13.sort () (ascending)
14.list () will turn into a list of tuples
python learning nine (list method) Notes
Guess you like
Origin blog.csdn.net/weixin_38324954/article/details/94384981
Recommended
Ranking