ListToolboxes
汇总
此 ListToolboxes 函数用于返回地理处理工具箱列表。
语法
ListToolboxes({wild_card})
| 参数 | 说明 | 数据类型 | ||||||
|---|---|---|---|---|---|---|---|---|
|
wild_card |
限制返回的结果。如果未指定某一值,则返回所有值。通配符不区分大小写。
|
* |
返回值
| 数据类型 | 说明 |
|---|---|
|
String |
该函数返回的列表包含地理处理工具箱名称,可以选择使用 |
代码示例
ListToolboxes 示例
列出指定工具箱。
import arcpy
# Get and print a list of all toolboxes.
toolboxes = arcpy.ListToolboxes()
for toolbox in toolboxes:
print(toolbox)