Python3.X 源码文件默认使用utf-8编码,所以可以正常解析中文,无需指定 UTF-8 编码。

pycharm设置uft-8编码

  • file > Settings Editor > File encodings,将 IDE Encoding 和 Project Encoding 设置为utf-8。
    python代码中含有中文无法编译

相关文章:

  • 2021-06-26
  • 2022-12-23
  • 2021-11-22
  • 2021-09-27
  • 2021-09-24
  • 2021-05-04
  • 2021-04-30
  • 2021-11-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2021-12-06
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
相关资源
相似解决方案