python 生成等差数列

import numpy as np
import numpy as np
def shulie(first,end,step):
    x = []
    for i in np.arange(first, end,step):
        x.append(i)
    return x

 

first --首个数字

end--尾数字

step--间隔

Guess you like

Origin blog.csdn.net/qq_35674193/article/details/104585518