arcpy 中对选中要素属性的修改
mxd = arcpy.mapping.MapDocument("CURRENT")
layer = arcpy.mapping.ListLayers(mxd)
layer = arcpy.ListFeatureClasses()
sel = Layer.getSelectionSet()
def test():
with arcpy.da.UpdateCursor(layer,"*") as cursor:
cntr = 1
for row in cursor:
row[2] = 1 #row 选中要素的属性集
print row[2]
cntr = cntr + 1
cursor.updateRow(row) #修改后更新属性集