会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
辰梦starDream
博客园
首页
新随笔
联系
订阅
管理
2022年7月4日
lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: meta line 6 and head, line 8, column 8
摘要: Python爬虫中遇到的问题: Python代码(本身没有错,是HTML文档有问题) from lxml import etree # 获取本地HTML文档 html = etree.parse(r"测试.html") result = etree.tostring(html, encoding='
阅读全文
posted @ 2022-07-04 11:59 辰梦starDream
阅读(3)
评论(0)
推荐(0)
编辑
公告