np.argwhere(a) 与 np.transpose(np.nonzero(a)) 几乎相同,但是会产生0D数组正确形状的结果。 argwhere 的输出不适用于索引数组。 为此,请使用 nonzero( ...
確定! 回上一頁