解决方法: 在Python脚本文件的第一行或第二行添加一句: #coding:gbk 或 #coding:utf-8 或 ##-*- coding : gbk -*- 转载于:https://www.cnblogs.com/lijunqiang1997/p/8510064.html