有三种方法,remove、pop、del
ll = ['a','b','c','d']
ll.remove('a')
ll
Out[26]: ['b', 'c', 'd']
ll = ['a','b','c','d']
ll.pop(1)
Out[28]: 'b'
ll
Out[29]: ['a', 'c', 'd']
ll = ['a','b','c','d']
del ll[0]
ll
Out[32]: ['b', 'c', 'd']
有三种方法,remove、pop、del
ll = ['a','b','c','d']
ll.remove('a')
ll
Out[26]: ['b', 'c', 'd']
ll = ['a','b','c','d']
ll.pop(1)
Out[28]: 'b'
ll
Out[29]: ['a', 'c', 'd']
ll = ['a','b','c','d']
del ll[0]
ll
Out[32]: ['b', 'c', 'd']