numpy.flatiter.coords# attribute flatiter.coords# 当前坐标的 N 维元组. 示例 Try it in your browser! >>> import numpy as np >>> x = np.arange(6).reshape(2, 3) >>> fl = x.flat >>> fl.coords (0, 0) >>> next(fl) 0 >>> fl.coords (0, 1) Go BackOpen In Tab