时间:2024-10-15 19:39:58
1、指定文件字符集为utf-8在文件头部加入以下代码:import sysreload(sys)sys.setdefaultencoding('utf-8')