python 指定文件编码的方法

import sys
reload(sys)
sys.setdefaultencoding('utf-8')
原文地址:https://www.cnblogs.com/kaibindirver/p/7459402.html