arcpy.ListFields
for i in range(1, 3): shape_num = "shape" + str(i) ns = locals() fieldList = arcpy.ListFields(ns[shape_num])
Get variables to pass to arcpy function
Recommended Posts