解析中文会出现\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" + ">")

 

相关文章:

  • 2022-01-10
  • 2022-01-03
  • 2022-01-06
  • 2022-12-23
  • 2021-07-11
  • 2021-11-02
  • 2021-12-10
  • 2021-12-12
猜你喜欢
  • 2022-12-23
  • 2021-12-29
  • 2022-02-07
  • 2021-11-18
  • 2021-10-05
  • 2021-07-05
  • 2021-08-26
相关资源
相似解决方案