代码编码为utf-8,print编码为utf-8,数据插入数据库报错 解决方法: import os os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8'