old = [[1, 2], [3, 4], [5, 6]] # 從old中一個一個取出值,對取出的值(i)再進行一次遍歷取值操做(也能夠進行判斷或者運算) new = [j for i in old for j in i] print(new)