argwhere (a) is the same as np.transpose(np.nonzero(a)). The output of argwhere is not suitable for indexing arrays. For this purpose use where(a) instead ...
確定! 回上一頁