import numpy as np
1. 生成等差数列arrange
a = np.arrange(0, 100, 10) # 0为起始值,100为终止值,10为差值
a = numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None)
# 在指定的间隔内返回均匀间隔的数字。
import numpy as np
a = np.arrange(0, 100, 10) # 0为起始值,100为终止值,10为差值
a = numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None)
# 在指定的间隔内返回均匀间隔的数字。