>>> a=[1,2,3] >>> a.remove(2) >>> a [1, 3] >>> a=[1,2,3] >>> del a[1] >>> a [1, 3] >>> a= [1,2,3] >>> a.pop(1) 2 >>> a [1, 3] >>>
Is there any difference between the above three methods to remove an element from a list? 以上三種從列表中刪除元素的方法之間有什麼區別嗎? spa