使用numpy进行数组转换的有效方法

DaM*_*aMi 0 python numpy

如何使用numpy将ARRAY U(Nz,Ny,Nx)更改为U(Nx,Ny,Nz)?谢谢

小智 5

只是numpy.transpose(U)U.T.