我们在用xlrd xlwt操作excel表格的时候希望能设计出好看的表格,列宽的话较为简单:
sheet3.col(1).width = 256*72 #设置列宽,256为基准数,
行高的话用如下方法设计:
sheet3.row(count).height_mismatch = True
sheet3.row(count).height = 20*40 #20为基准数,40意为40磅
找了很多地方才找到这么设置行高的。。。
我们在用xlrd xlwt操作excel表格的时候希望能设计出好看的表格,列宽的话较为简单:
sheet3.col(1).width = 256*72 #设置列宽,256为基准数,
行高的话用如下方法设计:
sheet3.row(count).height_mismatch = True
sheet3.row(count).height = 20*40 #20为基准数,40意为40磅
找了很多地方才找到这么设置行高的。。。