How do I remove an element from a list by index in Python?
I found the list.remove
method, but say I want to remove the last element, how do I do this? It seems like the default remove searches the list, but I don't want any search to be performed.
转载于:https://stackoverflow.com/questions/627435/how-do-i-remove-an-element-from-a-list-by-index-in-python