ListTools (arcpy)
摘要
Lists the geoprocessing tools, limited by name. A Python list is returned from the function.
语法
ListTools ({wild_card})
参数 | 说明 | 数据类型 |
wild_card |
通配符可限制返回的结果。如果未指定任何通配符,则会返回所有值。 | String |
数据类型 | 说明 |
String |
The Python List returned from the function containing geoprocessing tool names, limited by the optional wild card. |
代码实例
ListTools example
Lists all tools in the specified toolbox.
import arcpy
# Create a list of tools in the Analysis toolbox
#
tools = arcpy.ListTools("*_analysis")
# Loop through the list and print each tool's usage.
#
for tool in tools:
print arcpy.Usage(tool)
相关主题
9/15/2013