第一個引數為插入處前元素的索引值,所以 a.insert(0, x) 會插入在list 首位,而 a.insert(len(a), x) 則相當於 a.append(x) 。 list.remove(x). 刪除list 中第一個值 ...
確定! 回上一頁