b = np.reshape( a, # the array to be reshaped (2,3) # dimensions of the new array ). print(a) # the original 1-dimensional array. [1 2 3 4 5 6].
確定! 回上一頁