def style_data(self):
style = xlwt.easyxf(
'font: bold on,height 300;align: wrap on,vert centre, horiz center;')
colour_style = xlwt.easyxf('align: wrap yes,vert centre, horiz center;pattern: pattern solid, \
fore-colour light_orange;border: left thin,right thin,top thin,bottom thin')
base_style = xlwt.easyxf('align: wrap yes,vert centre, horiz left; pattern: pattern solid, \
fore-colour light_yellow;border: left thin,right thin,top thin,bottom thin')
float_style = xlwt.easyxf('align: wrap yes,vert centre, horiz right ; pattern: pattern solid,\
fore-colour light_yellow;border: left thin,right thin,top thin,bottom thin')
date_style = xlwt.easyxf('align: wrap yes; pattern: pattern solid,fore-colour light_yellow;border: left thin,right thin,top thin,bottom thin\
', num_format_str='YYYY-MM-DD')
datetime_style = xlwt.easyxf('align: wrap yes; pattern: pattern solid, fore-colour light_yellow;\
protection:formula_hidden yes;border: left thin,right thin,top thin,bottom thin',
num_format_str='YYYY-MM-DD HH:mm:SS')
return style, colour_style, base_style, float_style, date_style, datetime_style
评论列表
文章目录