python 指定文件编码的方法

import sys
reload(sys)
sys.setdefaultencoding('utf-8')
posted @ 2017-08-31 17:26  凯宾斯基  阅读(1250)  评论(0编辑  收藏  举报