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
转载请注明原文地址:https://tech.qufami.com/read-9663.html