Python XLWT无法指定行高

2024-09-22 10:20:18 发布

您现在位置:Python中文网/ 问答频道 /正文

我试着用xlwt来表示row(I)。height,但是没有结果。

我的代码:

import xlwt
book = xlwt.Workbook(encoding='latin-1')
sheet = sheet.add_sheet('KPI.TiempoRespuesta',cell_overwrite_ok=True)
sheet.write(1, 4, "BLABLABLABLABLABLABLABLABLABLABLABLA")
sheet.row(4).height = 256*20
book.save("book.xls")

我想增加单元格高度;/,但行(I)。高度不起作用


Tags: 代码importadd高度cellencodingsheetrow