Example#. arr = np.arange(10).reshape(2, 5). Using .transpose method: arr.transpose() # Out: # array([[0, 5], # [1, 6], # [2, 7], # [3, 8], # [4, 9]]).
確定! 回上一頁