天天看点

python数据写入csv打开乱码

解决方法很简单:

import pandas as pd
df.to_csv('xxx.csv', encoding='utf-8-sig')