📜  Numpy nditer - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:13.274000             🧑  作者: Mango

代码示例2
import numpy as np
a=np.array([[2,4,5],[3,6,7],[4,8,9]])
print("Original array is :")
print(a)
print("Modified array is:")
for x in np.nditer(a, flags = ['external_loop'],order='F'):
        print(x)