np.argwhere( a )
Find the indices of array elements that are non-zero, grouped by element.
返回非0的数组元组的索引,其中a是要索引数组的条件。
返回数组中所有大于1的数字的索引值。
版权声明:本文为u012193416原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
np.argwhere( a )
Find the indices of array elements that are non-zero, grouped by element.
返回非0的数组元组的索引,其中a是要索引数组的条件。
返回数组中所有大于1的数字的索引值。