import pandas as pd
content=pd.read_table("1.txt",encoding='gb2312',sep='\t',header=None)
print(content)
content.to_excel("2.xls",header=None,index=None)
pandas读写文件
最新推荐文章于 2024-09-18 19:58:02 发布
import pandas as pd
content=pd.read_table("1.txt",encoding='gb2312',sep='\t',header=None)
print(content)
content.to_excel("2.xls",header=None,index=None)