深入链表(most on lists) The list data type has some more methods. Here are all of the methods of list objects: list.append(x) Add an item to the end of the list; equivalent to a[len(a):] = [x]. list.extend(L) Extend the list by appending all the items in…