author = 'jyang'
import sys
import json
reload(sys)
sys.setdefaultencoding('utf-8')
还报Undefined variable from import: setdefaultencoding错误
ringa_lee2017-04-18 09:05:14
There is a possibility that python3 has been used
reload has been placed in another location,
from imp import reload
But sys.setdefaultencoding('utf-8') is no longer meaningful,
Because python3 uses unicode, there is no need to set utf-8 anymore