https://numpy.org/doc/stable/reference/generated/numpy.matrix.reshape.html https://numpy.org/doc/stable/reference/generated/numpy.reshape.html#numpy.reshape np.reshape(a, (3,-1)) # the unspecified value is inferred to be 2 # 固定row是3 # -1→系統自動幫判斷column array([[1, 2], [3, 4], [5, 6]])