# -*- coding: utf-8 -*-
from pyquery import PyQuery as pq
with open('文件路径', "r") as f:
str = f.read().encode("utf-8") #设置"utf-8"编码,这一步很重要
p = pq(str)
# -*- coding: utf-8 -*-
from pyquery import PyQuery as pq
with open('文件路径', "r") as f:
str = f.read().encode("utf-8") #设置"utf-8"编码,这一步很重要
p = pq(str)
Copyright © 2021-2022 www.miaokee.com 秒客网 备案号:粤ICP备2021167564号
免责声明:本站文章多为用户分享,部分搜集自互联网,如有侵权请联系站长,我们将在72小时内删除。