filter方法

filter(type, sheet_index)

按范围获取所有定义的名称。

返回

def filter(self, type, sheet_index):
    ...
范围类型描述
typeNameScopeType作用域类型。
sheet_indexint表索引。
仅当作用域类型为 NameScopeType.WORKSHEET 时有效

也可以看看