UnicodeDecodeError: 'gbk' codec can't decode byte 0xac in position 235: illegal multibyte sequence的解决方案

之前的代码html = open("jobpage.html","r")


原因:html是gbk编码,所以编码需要转为utf-8


修改后的代码 html = open("jobpage.html",encoding='utf-8').read()
posted @ 2022-04-07 16:41  nightmare梦魇  阅读(144)  评论(0)    收藏  举报