import
sys
reload
(sys)
sys.setdefaultencoding(
‘utf-8‘
)
python 指定文件编码的方法
原文:http://www.cnblogs.com/kaibindirver/p/7459402.html