def get_title(self):
# ????
font = xlwt.Font()
# font.name = "Arial" #????
font.colour_index = 1 # ?????
font.bold = True # ????
font.height = 20 * 11 # ??????????????????????
# ?????
patterni = xlwt.Pattern()
patterni.pattern = xlwt.Pattern.SOLID_PATTERN
patterni.pattern_fore_colour = 24 #???????
# ????
style = xlwt.XFStyle()
style.font = font
style.pattern = patterni
for r,title in zip(range(12),["??","??","????","??","????","????","????","????","?????",
"????","????","????"]):
self.sheet.write(0,r,title,style)
for x in [0,3,4,5,6,7,9]:
self.sheet.col(x).width = 256*8
self.sheet.col(1).width = 250*16
self.sheet.col(2).width = 256*30
self.sheet.col(8).width = 256*40
self.sheet.col(10).width = 256*20
self.sheet.col(11).width = 256*50
# ???????i??????????????
评论列表
文章目录