numpy.nditer.copy# method nditer.copy()# 获取迭代器当前状态的副本. 示例 Try it in your browser! >>> import numpy as np >>> x = np.arange(10) >>> y = x + 1 >>> it = np.nditer([x, y]) >>> next(it) (array(0), array(1)) >>> it2 = it.copy() >>> next(it2) (array(1), array(2)) Go BackOpen In Tab