ndarray 有相同类型和大小的项目的多维容器,shape决定尺寸和阵列的项目,其中数组中的项目类型由单独的数据结构对象指定指定,其中一个与每个ndarray相关联
一、数组的创建:
1、ones and zeros
empty、empty_like、identity、ones_like\zeros\zeros_like\full\full_like
2、从存在的数据开始转换 from existing data
array、asarray\ asanyarray\ascontiguousarray\asmatrix\copy\frombuffer\fromfile\fromfunction\fromiter\fromstring\loadtxt
3、创建记录数组 Creating record arrays(numpy.rec)
core.records.array core.records.fromarrays cord.records.fromrecords
core.records.fromstring core.records.fromfile
4 Creating character arrays
core.defchararray.array core.defchararray.asarray