numpy.arange 等差数列
2021-01-31 本文已影响0人
AeroZ
reference:
https://deepage.net/features/numpy-arange.html
>> [x for x in range(10)]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>> np.array(range(10))
array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
reference:
https://deepage.net/features/numpy-arange.html
>> [x for x in range(10)]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>> np.array(range(10))
array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])