在windows下用with open 打开html文件报gbk错误

with open('xx.html'  , 'rb' ,enconding='utf-8')as f:    可能原因是由于HTML是在Linux下开发的,与windons 系统编码不兼容

posted @ 2019-09-16 12:55  王军的个人博客  阅读(398)  评论(0编辑  收藏  举报