type
status
date
slug
summary
tags
category
icon
password

1.查看数组形状

ndarray.shape
返回值一个由数组维度构成的元组,比如 2 行 3 列的二维数组可以表示为(2,3)

2.修改数组的形状大小

ndarray.shape=() 函数可以改变多维数组行数和列数
ndarray.reshape()
notion image

3.查看数组维度

ndarray.ndim

4.查看数组每个元素的大小

ndarray.itemsize 以字节为单位

5.查看数组的内存信息

ndarray.flags
 
8.提升网站访问速度5.Numpy创建区间数组
Loading...
孟浩
孟浩
笔耕不辍,屡践致远
Latest posts
2025/4/17—对未来道路的一些思考
2025-4-17
2025/4/4—关于笔记和博客的一些想法
2025-4-8
7.8信号——自定义信号pyqtSignal
2025-4-1
7.Numpy索引和切片
2025-4-1
8.提升网站访问速度
2025-3-31
7.更新博客欢迎语
2025-3-31
Announcement
🎉NotionNext 4.5已经上线🎉
-- 感谢您的支持 ---
👏欢迎更新体验👏