鱼C论坛's Archiver
论坛
›
萌新交流区
› np.linspace()生成等间距数组
Handsome_zhou
发表于 2022-10-8 00:06:08
np.linspace()生成等间距数组
np.linspace(start, stop, num, endpoint, restart, stype)
start和stop为起始位置和终止位置
num为起始点和终止点之间取的点的数量
dtype给定类型后会把生成的数组类型转换为目标类型。
np.linspace()函数的作用是用来生成等间距数组。
页:
[1]
查看完整版本:
np.linspace()生成等间距数组