Exclude zero from np.linspace in one line

后端 未结 0 1243
清酒与你
清酒与你 2021-02-06 05:25

How can I remove zero from linspace?

this is my list:

np.linspace(-3, 3, 1)
--> [-3, -2, -1, 0, 1, 2, 3] 

And I want to achieve this:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题