python里面出现中文的时候报错 'ascii' codec can't encode characters in position时间:2023-12-17 10:47:20编码问题,在头部添加 import sys reload(sys) sys.setdefaultencoding( "utf-8" ) http://www.xuebuyuan.com/2226637.html