原文:python 3.9调 用 xlrd 1.2.0 报错 AttributeError: 'ElementTree' object has no attribute 'getiterator'

参照:https: blog.csdn.net suhao article details 在新版python . 中,windows中使用的更新删除了getiterator方法,所以我们老版本的xlrd库调用getiterator方法时会报错。AttributeError: ElementTree object has no attribute getiterator 解决方法: 找出目录pyt ...

2021-09-08 10:49 0 195 推荐指数:

查看详情

python报错AttributeError: 'set' object has no attribute 'items'“

作为才开始学爬虫的萌新,遇到了一个这样的错,很懵逼 后面到网络到处查看大佬的解决方法,才发现headers的请求头部信息有错误,headers是一个字典,不是字符串,所以报错了 原代码 修改后的代码 最后成功解决问题,成功登录 ...

Fri Apr 23 03:14:00 CST 2021 0 958
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM