主题
CustomListCount (属性)
返回已定义的自定义序列的数目(包括内置序列)。int 类型,只读。
示例
python
#本示例显示当前已定义的自定义序列的数量
def test():
print(f"There are currently {Application.CustomListCount} defined custom lists`)
python
#本示例判断是否存在已定义的自定义序列,在通知用户后,增加一个新的自定义序列
def test():
if Application.CustomListCount > 0:
print("已定义的自定义序列的数目为:" + Application.CustomListCount)
Application.AddCustomList(["Year", "Month", "Day"])
print("已定义的自定义序列的数目为:" + Application.CustomListCount)