utf8编码坑 Posted on 2019-02-01 保存文件是出现乱码文件缺失BOM的锅,用utf_8_sig解决…具体编码怎么回事参见BOM1df.to_csv("file",encoding="utf_8_sig") mysql-utf8mb4MySQL的字符设置….注意一下