numpy.where() with 2D array. First create a 3X3 matrix. import numpy as np x = np.arange(9.).reshape(3, 3). Output. array([[0., 1., 2.] ...
確定! 回上一頁