第一個參數是要加入的位置的index,所以a.insert(0, x) 會加入在list的最前端,而a.insert(len(a), x) 會在最後端加入,相等於a.append(x) 。
確定! 回上一頁