>>> x = 42 >>> xs = [1, 2, 3] >>> xs.insert(0, x) >>> xs [42, 1, 2, 3]. How it works: list.insert(index, value). Insert an item at a given position.
確定! 回上一頁