数组的所需数据类型,例如 numpy.int8 。默认值为 numpy.float64 。 ... np.zeros((5,), dtype=np.int) array([0, 0, 0, 0, 0]). >>> np.zeros((2, 1)) array([[ 0.] ...
確定! 回上一頁