主题
Count (属性)
返回一个 int 值,它代表集合中对象的数量。
示例
python
#本示例显示工作表 Sheet1 中第一张图表的坐标轴的数量
def test():
axes = Application.Sheets.Item("Sheet1").ChartObjects(1).Chart.Axes()
print(f"坐标轴的数量:{axes.Count}")