#pop()列表方法删除(弹出)列表末尾的元素(对象)
poped_ele = list1.pop()print(f"The poped element is {
poped_ele}!")print(f"The current list1 is {
list1}")#pop(n)可以从列表中部分弹出下标为n的元素print(f"The 2th([1]) element 'kate' will be poped,the result is {
list1.pop(1)} ")
The poped element is 233!
The current list1 is ['tom', 'kate', 'Lili']
The 2th([1]) element 'kate' will be poped,the result is kate