# 简介

ArcPy是Esri公司在利用Python对ArcGIS的脚本模块arcgisscripting进行的一层分装。ArcPy定位是工具级别的操作，非常适合编程基础薄弱的人进行使用。

在ArcGIS 10以前，其自带的脚本处理工具默认是VBA，Python 编程语言用于自 9.0 起的各版本 ArcGIS 中，其默认的脚本使用的语言为Python2，在ArcGIS Pro中，更是为ArcPy提供了Pthon3的支持。

在本书中，我将带大家认识下如果使用Python2版本的ArcPy。

代码下载：

{% file src="/files/-MGSCGDHeKu4vfekyuLx" %}
ArcPy入门-code
{% endfile %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zxyao.gitbook.io/arcpy/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
