摘要: 【问题】想要使用Python的xlwt设置单元格的背景色。但是不知道如何设置。【解决过程】1.从Working with Excel Files in Python找到官网的:The xlwt Module,无果。2.参考:XLWT : Changing the Cell Background Color试了其代码:?12345678910badBG=xlwt.Pattern()badBG.SOLID_PATTERN=0x34badBG.NO_PATTERN=0x34badBG.pattern_fore_colour=0x34badBG.pattern_back_colour=0x34badF 阅读全文
posted @ 2013-04-26 18:00 wuxi812 阅读(4826) 评论(0) 推荐(0) 编辑