python xlwt set custom background colour of a cell

前端 未结 5 1431
迷失自我
迷失自我 2020-12-08 21:04

I am using python 2.7 and xlwt module for excel export

I would like to set backgroung colour of a cell i know i can use

style1 = xlwt.easyxf(\'patter         


        
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 21:36

    Alternative solution:

    If you can get away with the colors defined in xlwt, go to a color information site like http://www.colorhexa.com/90ee90 and match from one of the following Python Excel colors: http://bit.ly/1NMH67F

提交回复
热议问题