np.argwhere( a )

np.argwhere( a )

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

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

原文地址:http://www.cnblogs.com/bokeyuanjj/p/16852683.html

发表评论

您的电子邮箱地址不会被公开。