Argwhere python Web21 Jul 2017 · Why not simply use masking here: z[z % 3 == 0]. For your sample matrix, this will generate: >>> z[z % 3 == 0] array([0, 3, ...
確定! 回上一頁