python xls2csv
import pandas as pda
ex=pda.read_excel("k.xls")
ex.to_csv("k.csv",encoding="gbk")
import pandas as pda
cs=pda.read_csv("k.csv",encoding="gbk")
cs.to_excel("cs.xls",encoding="utf-8")
如果不对第一行和第一列进行定义,pandas会自动用数字序号补齐,
不想表头或序号,就需要:
output = pd.DataFrame(data=list1)
output.to_csv('save_path', header=None, index=None)