Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 openpyxl 解析 .xlsx 文件。在写入 xlsx 文件时,我需要保持与输入 .xlsx 文件的单元格中相同的字体颜色和单元格颜色。知道如何从中提取颜色编码单元格,然后在另一个 excel 文件中实现相同。在此先感谢
我相信您可以通过以下方式访问字体颜色: color = ws.cell(row=id,column=id).style.font.color
我不确定如何访问单元格颜色。