点要素简单就不说了,
线面同理
# encoding: utf-8 import arcpy data=r"C:\Users\h\Desktop\nb\Export_Output_2.shp" with arcpy.da.SearchCursor(data, ["SHAPE@","FID"]) as cursor: for row in cursor: for pts in row[0]: for pt in pts: print("{0}, {1}".format(pt.X, pt.Y))