format方法

format(self, pivot_area, style)

格式化数据透视表的选定区域。


def format(self, pivot_area, style):
    ...
范围类型描述
pivot_areaPivotArea选定的枢轴视图区域。
styleStyle格式化的设置。

format(self, ca, style)

格式化数据透视表的选定区域。


def format(self, ca, style):
    ...
范围类型描述
caCellArea单元格的范围。
styleStyle风格

format(self, row, column, style)

设置数据透视表区域中单元格的格式


def format(self, row, column, style):
    ...
范围类型描述
rowint单元格的行索引
columnint单元格的列索引
styleStyle单元格格式的样式

也可以看看