typestatusdateslugsummarytagscategoryiconpassword1.查看数组形状ndarray.shape返回值一个由数组维度构成的元组,比如 2 行 3 列的二维数组可以表示为(2,3)2.修改数组的形状大小ndarray.shape=() 函数可以改变多维数组行数和列数ndarray.reshape()3.查看数组维度ndarray.ndim4.查看数组每个元素的大小ndarray.itemsize 以字节为单位5.查看数组的内存信息ndarray.flags Author:孟浩URL:MengHaoの博客 | 行而不辍,未来可期/article/1c730b52-583a-8098-9ea2-cf4c5c84d86eCopyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!Relate Posts7.Numpy索引和切片5.Numpy创建区间数组4.Numpy创建数组3.Numpy数据类型2.ndarray对象1.安装运行环境8.提升网站访问速度5.Numpy创建区间数组