flattened = [] for row in matrix: for n in row: flattened.append(n). Here's a list comprehension that does the same thing:
確定! 回上一頁