且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Python xlwings设置行高

更新时间:2023-01-25 09:00:38

所述缺少功能,您始终可以下拉至pywin32并查看 VBA文档.

As explained under Missing Features, you can always drop down to pywin32 and check out the documentation for VBA.

在您的情况下,它将像这样工作:

In your case, it would work like this:

import xlwings as xw
wb = xw.Book(...)
wb.sheets[0]['1:1'].api.RowHeight = 100