Note that pop() uses index numbers, but remove() uses the value, e.g. 'b', to search for and remove. >>> lst = ['a', 'b', 'c', 'd'] >>> lst.remove('b') > ...
確定! 回上一頁