df = pd.DataFrame(sets, dtype='str')
df.to_excel('itcast.xlsx', index=False)
添加 dtype='str' 即可强制转换成文本。
2023年06月19日
df = pd.DataFrame(sets, dtype='str')
df.to_excel('itcast.xlsx', index=False)
添加 dtype='str' 即可强制转换成文本。
Powered By Z-BlogPHP 1.7.5
Copyright VZZW.COM.All Rights Reserved.
湘ICP备2021010131号-2 51LA统计