Skip To Content

Usage

概要

Returns the syntax for the specified tool or function.

ディスカッション

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

import arcpy
help(arcpy.Buffer_analysis)

構文

Usage (tool_name)
パラメーター説明データ タイプ
tool_name

The tool name to display the syntax.

String
戻り値
データ タイプ説明
String

Returns a string containing the specified tool's syntax.

コードのサンプル

Usage example

Print specified tool's syntax.

import arcpy

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

関連トピック