原文:AttributeError: type object 'LoginPage' has no attribute 'LoginPage'

排查原因: 因为py文件和class重名,编译器自动导入了错误的方法的路径,错误路径如下 以下是正确的导入路径: ...

2020-06-07 15:34 0 670 推荐指数:

查看详情

AttributeError: 'Table' object has no attribute 'plot'错误

今天在用到camelot爬取pdf的表格时,想选取部分区域进行爬取,就想用plot把pdf画一下,选个坐标。 看了网上的示例,在使用camelot.read_pdf获取当前页面以后调用tables[0].plot('text'),提示AttributeError: 'Table' object ...

Mon Jan 06 09:35:00 CST 2020 0 1305
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM