解析中文会出现\xbe\c8\90\hd........
这个和你的编码选择有关。如果是解析成html,则需
fout = open('output.html', 'w',encoding='utf-8')
在head加
fout.write("<meta http-equiv=" + "Content-Type" + " content=" + "text/html;charset=UTF-8" + ">")
解析中文会出现\xbe\c8\90\hd........
这个和你的编码选择有关。如果是解析成html,则需
fout = open('output.html', 'w',encoding='utf-8')
在head加
fout.write("<meta http-equiv=" + "Content-Type" + " content=" + "text/html;charset=UTF-8" + ">")
转载于:https://www.cnblogs.com/rainday1/p/5760053.html