numpy.linspace

numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None)

start : 序列的起始点.
stop : 序列的结束点
num : 生成的样本数,默认是50,非负。
endpoint : 如果True,'stop'是最后一个样本。否则,它不包括在内。默认为True。
retstep : 如果True,返回 (`samples`, `step`),步长
dtype :

posted @ 2023-02-28 17:23  Carllll  阅读(9)  评论(0编辑  收藏  举报