numpy.linspace(start,stop,num=50,endpoint=True,retstep=False,dtype=None,axis=0)
返回均匀间隔数覆盖指定间隔,或返回num均匀间隔实例,计算覆盖间隔[start,stop]。
频繁操作start,stop,num。
简单实例:
import numpy as npa = np.linspace([1,2],[2,3],num=4,endpoint=True)print(a)a = np.linspace([1,2],[2,3],num=4,endpoint=False)print(a)
