1、首先,打开arcgis,加入数据。

2、然后,打开Python窗口,如图位置。

3、然后,输入e = 'Export_Output_3'
将要素图层赋给变量e

4、然后,在输入:
ee = arcpy.ListFields(e)
list函数,将列表赋给ee

5、接着,再输入:
>>> for i in ee:
... print i.name
循环ee来读取列表。

6、最后,该图层的字段名称被遍历出来。

时间:2025-10-08 19:00:33
1、首先,打开arcgis,加入数据。

2、然后,打开Python窗口,如图位置。

3、然后,输入e = 'Export_Output_3'
将要素图层赋给变量e

4、然后,在输入:
ee = arcpy.ListFields(e)
list函数,将列表赋给ee

5、接着,再输入:
>>> for i in ee:
... print i.name
循环ee来读取列表。

6、最后,该图层的字段名称被遍历出来。
