Sheet' object has no attribute 'write'
时间: 2023-08-28 09:04:18 浏览: 235
这个错误提示"Sheet' object has no attribute 'write'"表示在你的代码中,你尝试访问了一个Sheet对象的write属性,但是这个对象没有这个属性。根据引用和引用的内容,你需要检查你的代码,确保你正在使用的对象具有write方法。比如,如果你正在处理Excel表格,你可以使用相应的库(比如openpyxl)打开一个Excel文件并获得一个Sheet对象,然后使用这个Sheet对象的write方法将内容写入表格中。请检查你的代码,确保你正在正确地使用Sheet对象的方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [AttributeError: 'Document' object has no attribute 'write'](https://blog.csdn.net/weixin_42602726/article/details/129566599)[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* [解决方案:AttributeError: ‘NoneType‘ object has no attribute ‘write](https://blog.csdn.net/zjjhwzl/article/details/128653521)[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 ]
阅读全文