YDOOK:Python numpy Ndarray 通过 ndarray.flags 获取 Ndarray 对象的信息

tech2023-02-13  100

Python numpy Ndarray 通过 ndarray.flags 获取 Ndarray 对象的信息

import numpy as np a = np.arange(10) print(a.flags)

结果

C_CONTIGUOUS : True F_CONTIGUOUS : True OWNDATA : True WRITEABLE : True ALIGNED : True WRITEBACKIFCOPY : False UPDATEIFCOPY : False Process finished with exit code 0
最新回复(0)