The util talks about a function called this
style0 = xlwt.easyxf(
'font: name Times New Roman, colour_index red'
)
there is color red
instead of color_index
too .
Is there any provision to color the entire row?
pattern: pattern solid
这可以用于向行中添加颜色...然后您可以添加所需的颜色。
pattern: pattern solid,fore-color "COLOR NAME"
You asked this question on the python-excel forum and got a comprehensive answer there ...
By the way: xlwt
is a fork of pyExcelerator
, with bug-fixes and many enhancements. pyExcelerator
is effectively abandoned.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.