Numpy, how to retrieve sub-array of array (specific indices)?

前端 未结 0 327
挽巷
挽巷 2021-01-31 17:02

I have an array:

>>> arr1 = np.array([[1,2,3], [4,5,6], [7,8,9]])
array([[1 2 3]
      [4 5 6]
      [7 8 9]])

I want to retrieve a list

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