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