属性
flatiter.
coords
当前坐标的N维元组。
实例
>>> x = np.arange(6).reshape(2, 3) >>> fl = x.flat >>> fl.coords (0, 0) >>> next(fl) 0 >>> fl.coords (0, 1)