1.
df=pd.to_csv(file_name.csv)保存文件时默认应该不是‘utf-8’ ,因为中文可以正常显示
但官方文档说明如下
encoding : string, optional
A string representing the encoding to use in the output file, defaults to ‘ascii’ on Python 2 and ‘utf-8’ on Python 3.
此处我的已是python3,此处存疑
2,df=pd.read_csv(file_name.csv) 读取CSV文件(可以正常显示中文)时报错