Several common list of built-in method

append () increase in the last element

extend () extended list (list with another)

insert () to insert an element at the specified position

remove () removes an element

pop () Removes and returns the last element

Number count () Returns the specified element is calculated and

Sort () (in ascending order) in a specific sequential ordering

() Copies a copy of copy

clear () Clear all the elements

reverse () Flip all the elements in place

index () to find and retrieve the index of the parameter values

Yellow also applicable to the tuple

Guess you like

Origin www.cnblogs.com/noobliu/p/12324630.html