np.zeros((5,), dtype=np.int)#生成包含5个元素的零矩阵,且各元素为整形 array([0, 0, 0, 0, 0]) ... dtype:数据类型,可选参数,默认numpy.float64.
確定! 回上一頁