AttributeError: 'int' object has no attribute 'executemany'
时间: 2023-10-01 12:03:54 浏览: 124
AttributeError: 'int' object has no attribute 'executemany'错误通常表示你尝试在一个整数对象上调用executemany方法,而该方法只能在数据库连接对象上调用。这可能是因为你误将整数对象赋值给了数据库连接对象的变量。要解决这个问题,你可以检查你的代码,确保你正确地将数据库连接对象赋值给了对应的变量。同时,还要确保你在调用executemany方法之前,已经正确地建立了数据库连接,并且该连接对象是有效的。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [AttributeError: 'NoneType' object has no attribute 'execute' 错误的解决](https://blog.csdn.net/helloxiaozhe/article/details/75150280)[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* [python报错: list object has no attribute shape的解决](https://download.csdn.net/download/weixin_38748721/13708867)[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 ]
阅读全文