. , 4.5])
>>> np.arange(0.1,5.0)
array([0.1, 1.1, 2.1, 3.1, 4.1])
2 numpy.linspace
指定时间间隔,返回均匀间隔的数...语法: numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, axis=0)
参数:
start:起始值...4, 5]])
>>> a
array([0, 1, 2, 3, 4, 5])
>>> a.reshape((2,3))
array([[0, 1, 2],
[3, 4, 5]])
6 numpy.array