Skip to content
本页内容

Count (属性)

返回一个 int 值,它代表集合中对象的数量。

示例

python
#本示例显示活动工作表中数据透视表的公式的数量
def test():
    pvtFormulas = ActiveSheet.Range("I1").PivotTable.PivotFormulas
    print(f"公式的数量:{pvtFormulas.Count}")