欢迎

np.argwhere( a )

np.argwhere( a )

Find the indices of array elements that are non-zero, grouped by element.

返回非0的数组元组的索引,其中a是要索引数组的条件。

posted @ 2022-11-02 21:56  bokeyuan-aa  阅读(24)  评论(0编辑  收藏  举报