第一個引數為插入處前元素的索引值,所以 a.insert(0, x) 會插入在list 首位,而 a.insert(len(a), ... for i in reversed(range(1, 10, 2)): ... print(i) .
確定! 回上一頁