我遇到的问题是使用pandas的DataFrame to_csv方法实现csv文件输出,但是遇到中文乱码问题,已验证的正确的方法是:
df.to_csv("result.csv",index=False,encoding="utf_8")