// 矩阵转置 let A:any[][] ATransposition = A[0].map((col, i) => { return A.map(row => { return row[i] }) }) A二维矩阵转置