pandas.to_excel将数据写为文本格式
微站长
2年前
819
0
df = pd.DataFrame(sets, dtype='str')
df.to_excel('itcast.xlsx', index=False)
添加 dtype='str' 即可强制转换成文本。
THE END
评论列表