numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None)在指定的间隔内返回均匀间隔的数字。...arangeSimilar to linspace, but uses a step size (instead of the number of samples).arange使用的是步长,而不是样本的数量...(1, 10, 10)array([ 1., 2., 3., 4., 5., 6., 7., 8., 9., 10.])>>> np.linspace(1, 10,..., 2.25, 2.5 , 2.75, 3. ])>>> np.linspace(2.0, 3.0, num=5, endpoint=False)array([ 2. , 2.2, 2.4..., 2.6, 2.8])>>> np.linspace(2.0, 3.0, num=5, retstep=True)(array([ 2