I_AM_YI
2021-06-29 14:57
采纳率: 100%
浏览 127
已采纳

xlsx转换为csv时中文乱码

import pandas as pd

def xlsx_to_csv_pd():
    data_xls = pd.read_excel('qiye.xlsx', index_col = 0)
    data_xls.to_csv('qiye.csv', encoding = 'utf - 8')

if __name__ == '__main__':
    xlsx_to_csv_pd()

1条回答 默认 最新

相关推荐 更多相似问题