TypeError: reshape() takes 2 positional arguments but 4 were given
时间: 2023-10-31 09:22:17 浏览: 253
django报错:add_atr() takes 0 positional arguments but 1 was given
这报错是因为在调用reshape()函数时传递了错误的参数。根据引用中的代码,reshape()函数应该只接受2个位置参数,但是却传递了4个参数。所以出现了TypeError: reshape() takes 2 positional arguments but 4 were given的报错信息。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [‘xxx‘ object has no attribute ‘xxx‘ 及 ‘xxx‘ takes 2 positional arguments but 3 were given报错...](https://blog.csdn.net/LZL2020LZL/article/details/131689328)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [TypeError: request() takes 2 positional arguments but 4 were given(已解决)](https://blog.csdn.net/qq_39343882/article/details/123095205)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文