argwhere () , which returns the true indices from a boolean array. np.argwhere(threshold_crossings)[:, 0 ]. # array([ ...
確定! 回上一頁