reload(sys)报Undefined variable: reload错误

author = 'jyang'
import sys
import json
reload(sys)
sys.setdefaultencoding('utf-8')
还报Undefined variable from import: setdefaultencoding错误

查看回复