python list的
remove
方法一: 使用
del
a = [1,2,3,4] del a[-1]
方法二: 使用
pop
a = [1,2,3,4] a.pop()
pop()
来源: http://www.phpxs.com/code/1004924/