python二维列表一维列表的互相转换实例 二维列表转一维列表fromcompiler.astimportflattena=[[1,2],[5,6]]print(flatten(a))结果:[1,2,5,6]一维列表 二维数组转一维