We can use transpose() function to transpose a 2d-array in NumPy. # transpose the array # note the shape is 3 x 2 np.transpose(b) >i = np.
確定! 回上一頁