Usage

Diese ArcGIS 2.7-Dokumentation wurde archiviert und wird nicht mehr aktualisiert. Inhalt und Links sind möglicherweise veraltet. Verwenden Sie die aktuelle Dokumentation.

Zusammenfassung

Returns the syntax for the specified tool or function.

Auswertung

Complete help information for a tool, including complete parameter descriptions, can be accessed using the Python help function.

import arcpy
help(arcpy.Buffer_analysis)

In a Notebook, complete help information, can be returned by appending a question mark to any function.

import arcpy
arcpy.Buffer_analysis?

Syntax

Usage (tool_name)
ParameterErklärungDatentyp
tool_name

The tool name to display the syntax.

String
Rückgabewert
DatentypErklärung
String

Returns a string containing the specified tool's syntax.

Codebeispiel

Usage example

Print the specified tool's syntax.

import arcpy

print(arcpy.Usage("Buffer_analysis"))
print(arcpy.Usage("MakeFeatureLayer_management"))

Verwandte Themen