linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None)
x3=np.linspace(1,5,5,dtype=int) #我们注意观察会发现,默认输出的是浮点形,我们这里改为整形。
print(x3)

linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None)
x3=np.linspace(1,5,5,dtype=int) #我们注意观察会发现,默认输出的是浮点形,我们这里改为整形。
print(x3)

2216
1021

被折叠的 条评论
为什么被折叠?