a = [1,2,3,'1',True,2.1] # 删除指定下标 不传入下标时默认删除最后一个元素 # pop() 可以返回删除后的新值 # a.pop() a.pop(1) print(a) print('-------------') print(a.pop(1))