📜  numpy arange - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:31.485000             🧑  作者: Mango

代码示例4
>>> import numpy as np
>>> np.linspace(start=0, stop=7.5, num=4)
array([ 0. ,  2.5,  5. ,  7.5])
>>> list(_)
[0.0, 2.5, 5.0, 7.5]