按某个字段遍历一个表SearchCursor
按某个字段遍历一个表
with arcpy.da.SearchCursor(input_layer, [split_field]) as cursor: for row in cursor: print row[0]#row[0]是因为上面的split_field字段只选了一个
按某个字段遍历一个表
with arcpy.da.SearchCursor(input_layer, [split_field]) as cursor: for row in cursor: print row[0]#row[0]是因为上面的split_field字段只选了一个