-
The value of the delete elements
motocycles = [ 'Hoda', 'yamaha', 'Suzuki']
motocycles.remove ( 'YAMAHA') to delete the motocycles 'yamaha', the list if there are multiple 'yamaha', remove () You can only delete the first one. -
Sort () method to sort the list permanently; function sorted () to sort the list by temporary
"Python programming from entry to practice" (Chapter III. List Brief) Notes
Guess you like
Origin blog.csdn.net/qq_38122800/article/details/104104411
Recommended
Ranking