头上加入以下内容试试:# -*- coding:utf-8import sysimport osreload(sys)sys.setdefaultencoding( "utf-8" )os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8'缘由:"{0}{1}".format("中国",name),其中name是xlrd读取excel的某列中文数据,执行时抛出异常,程序终止