[英]Is there a python-pptx function that is able to read the background color of a table cell?
我正在尝试使用 python-pptx 模块读取 pptx 文件中表格中单元格的背景颜色,但我只能设置_Cell
的填充属性,无法从中读取值。
我尝试阅读fill.back_color
,但是按照 output 的建议,在完成fill.patternize()
) 之后它们都是 (255,255,255) 。 我究竟做错了什么? 或者我应该使用另一个 package 吗?
我的 pptx 文件不是用 python 制作的。
正如@scanny 指出的那样, fill.back_color
用于图案填充。 对于单元格颜色,我应该从fill.fore_color
中读取。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.