numpy.size
时间: 2023-11-10 17:53:20 浏览: 67
numpy.size函数是一个用于返回矩阵或数组中元素个数的函数。它的参数包括输入的矩阵和可选的axis参数,用于指定返回哪一维的元素个数。如果没有指定axis参数,则返回整个矩阵的元素个数。如果指定了axis参数,可以返回指定维度的元素个数。例如,当axis=0时,返回矩阵的行数;当axis=1时,返回矩阵的列数。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* [python——numpy中的size()函数](https://blog.csdn.net/qq_43212169/article/details/101671499)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [numpy中的size()函数](https://blog.csdn.net/qq_25436597/article/details/79079435)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [【Python中统计矩阵元素个数 numpy.size()函数】](https://blog.csdn.net/liujingwei8610/article/details/122874046)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文