You can use the below-mentioned code to transpose a matrix in Python:- >>> [*zip(*theArray)]. [('a', 'd', 'g'), ('b', 'e', 'h'), ('c', 'f', ...
確定! 回上一頁