Using slice/mask instead of a for-loop to find items in an array

前端 未结 0 1327
挽巷
挽巷 2021-01-30 04:25
p= np.array([[ 1,  2,  3,  4,  5],
   [ 6,  7,  8,  9, 10],
   [11, 12, 13, 14, 15],
   [16, 17, 18, 19, 20]])

I have the above array and need to find t

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