python从列表中删除元素
myList.remove(item) # Removes first instance of "item" from myList
myList.pop(i) # Removes and returns item at myList[i]
删除list python中的值
list.remove(element)
按值从python列表中删除值
>>> a = ['a', 'b', 'c', 'd']
>>> a.remove('b')
>>> print a
['a', 'c', 'd']
如何从列表中删除项目
myList = ['Item', 'Item', 'Delete Me!', 'Item']
del myList[2] # myList now equals ['Item', 'Item', 'Item']
如何在python中从列表中删除元素并打印它
pop(n) removes the element at the given index number and can print it