Extrahieren Sie Python -Elemente außerhalb Null -Array -Elemente
numpy.nonzero(array)
#Return the indices of all the nonzero elements in the array
MitchAloha
numpy.nonzero(array)
#Return the indices of all the nonzero elements in the array