Resumen
Returns the syntax for the specified tool or function.
Debate
Complete help information for a tool, including complete parameter descriptions, can be accessed using the Python help function.
import arcpy
help(arcpy.Buffer_analysis)
Sintaxis
Usage (tool_name)
| Parámetro | Explicación | Tipo de datos | 
| tool_name | The tool name to display the syntax. | String | 
Valor de retorno
| Tipo de datos | Explicación | 
| String | Returns a string containing the specified tool's syntax. | 
Muestra de código
Usage example
Print the specified tool's syntax.
import arcpy
print(arcpy.Usage("Buffer_analysis"))
print(arcpy.Usage("MakeFeatureLayer_management"))