Create lists based on list of non-adjacent indices

后端 未结 0 371
野的像风
野的像风 2021-02-11 21:58

I have a list of indices (example below) and I want to define a function that given such an input i.e.,

a=np.array([1,2,3,4,6,7,8,11,12,13])

will retu

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