python 2解決編碼問題

import sys
reload(sys)
sys.setdefaultencoding('utf-8')

另:python 3的open函數能夠直接加encoding參數python

相關文章
相關標籤/搜索