我们在用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磅
找了很多地方才找到这么设置行高的。。。
————————————————
版权声明:本文为CSDN博主「david-foreststoe」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/lishilinforeststone/article/details/104814980