Openpyxl保存时更改单元格格式

时间:2020-06-12 15:17:27

标签: python time format openpyxl

我的时间格式为“ HH:MM:SS”的单元格有问题。 我需要修改其他单元格,但是必须保持相同。

enter image description here

但是,即使我不触摸它,单元格也会改变。

enter image description here

我只尝试打开并保存文件,但是问题是相同的。

codice sorgente wbDocument = openpyxl.load_workbook(excelPath + excelFile)
wsData = wbDocument['Sheet1']
wbDocument.save(excelPath + excelFile)

在大文件中,必须“重建”每个单元格是不可想象的! 有什么建议吗?

关于, 马可

0 个答案:

没有答案