经过数小时的搜寻,终于找到了解决方案-提出的想法,即在openpyxl中添加主题+色彩到RGB之间的转换。导入其颜色转换功能集,我可以将解决方案简化为以下步骤:
wb = load_workbook(filename, data_only=True)
theme = cell.fill.start_color.theme
tint = cell.fill.start_color.tint
color = theme_and_tint_to_rgb(wb, theme, tint)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句