import sys sys.setdefaultencoding('UTF-8')