如何使用 pyexcelerator 的 xlwt util 为整行着色

发布于 2024-10-28 12:15:55 字数 210 浏览 7 评论 0原文

该实用程序讨论了一个名为此的函数,

style0 = xlwt.easyxf(
'font: name Times New Roman, colour_index red'
)

也有 color red 而不是 color_index

是否有任何规定可以为整行着色?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

双手揣兜 2024-11-04 12:15:55
pattern: pattern solid

这可用于为行添加颜色...
然后你可以添加你想要的颜色..

pattern: pattern solid,fore-color "COLOR NAME"
pattern: pattern solid

This can be used to add color to row...
then u can add the color u want..

pattern: pattern solid,fore-color "COLOR NAME"
梦旅人picnic 2024-11-04 12:15:55

您在 python-excel 论坛上提出了这个问题,并得到了全面 “nofollow”>回答...

顺便说一下:xlwtpyExcelerator 的一个分支,修复了错误并进行了许多增强。 pyExcelerator 实际上已被放弃。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文