用charles抓包时, 对抓到的html,放到pycharm中解析,

结果报错:

SyntaxError: Non-UTF-8 code starting with '\xe5' in file ***.py on line 105, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for

 

我在开头添加了

# -*- encoding:utf-8 -*- 

 之后错误消失, 目前还没搞懂具体原因.

 

相关文章:

  • 2022-12-23
  • 2021-06-25
  • 2021-12-11
  • 2021-07-16
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
猜你喜欢
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
相关资源
相似解决方案