指定文件字符集为utf-8 在文件头部加入以下代码: import sys reload(sys) sys.setdefaultencoding('utf-8') 相关文章: 2022-01-24 2022-12-23 2022-12-23 2022-12-23 2022-12-23