1、transpose 交换
arr = np.random.arange().reshape((,,)) # ** = 则 arr_shape = arr.shape # ,, 则 arr 索引 # arr_tran = arr..transpose(,,); #索引 arr_tran_shape = arr_tran.shape #,,
1、swapaxes交换
arr = np.random.arange().reshape((,,)) # ** = 则 arr_shape = arr.shape # ,, 则 arr 索引 # arr_tran = arr..arr.swapaxes(,) #索引 arr_tran_shape = arr_tran.shape #,,