Python3.X 源码文件默认使用utf-8编码,所以可以正常解析中文,无需指定 UTF-8 编码。 pycharm设置uft-8编码 file > Settings Editor > File encodings,将 IDE Encoding 和 Project Encoding 设置为utf-8。 相关文章: 2021-06-26 2022-12-23 2021-11-22 2021-09-27 2021-09-24 2021-05-04 2021-04-30 2021-11-11