使用搜尋游標為檔案地理資料庫中的所有要素類行列印一個欄位值

要從位於臨時資料夾(C:\ Temp)中的測試檔案地理資料庫(Test.gdb)中的測試要素類(TestFC)列印測試欄位(TestField):

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