python的reshape函数
时间: 2023-10-23 22:05:03 浏览: 105
Python reshape的用法及多个二维数组合并为三维数组的实例
Python的reshape函数是Numpy库中的一个函数,用于改变数组的形状。通过reshape函数,我们可以将一个数组从原来的形状转换为新的形状。例如,可以将一个二维数组转换成一个三维数组,或者改变一个一维数组的维度。reshape函数接受一个参数,即目标形状,可以是一个整数或者一个元组。如果目标形状是一个整数,reshape<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [python中的reshape](https://blog.csdn.net/weixin_42828571/article/details/104121735)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [python中reshape函数用法详解](https://blog.csdn.net/change_xzt/article/details/129999062)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文