原文:https://docs.scipy.org/doc/numpy/reference/generated/numpy.flatiter.coords.html 译者:飞龙 UsyiyiCN 校对:(虚位以待)
原文:https://docs.scipy.org/doc/numpy/reference/generated/numpy.flatiter.coords.html
译者:飞龙 UsyiyiCN
校对:(虚位以待)
flatiter.
coords
当前坐标的N维元组。
例子
>>> x = np.arange(6).reshape(2, 3) >>> fl = x.flat >>> fl.coords (0, 0) >>> fl.next() 0 >>> fl.coords (0, 1)