Printing one fields value for all rows of feature class in file geodatabase using Search Cursor

suggest change

To print a test field (TestField) from a test feature class (TestFC) in a test file geodatabase (Test.gdb) located in a temporary folder (C:\Temp):

with arcpy.da.SearchCursor(r"C:\Temp\Test.gdb\TestFC",["TestField"]) as cursor:
    for row in cursor:
        print row[0]

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents