scipy 具有内置功能 arange 它概括了Python的 range() 构造函数来满足您对浮点处理的要求。
scipy
arange
range()
from scipy import arange