📜  列表理解 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:48.199000             🧑  作者: Mango

代码示例6
list = [[2,4,6,8]]
matrix = [[row[i] for row in list] for i in range(4)]
print(matrix)