主题
Count (属性)
返回集合中对象的数目。
返回值
int
示例
python
#本示例显示活动工作表上数据透视表的第一个切片器的缓存关联的数据透视表的数量
def test():
sliCache = ActiveSheet.Range("I1").PivotTable.Slicers.Item(1).SlicerCache
print(sliCache.PivotTables.Count)