for row in arcpy.SearchCursor(fc): row.getValue("SITE_ID")
with arcpy.da.SearchCursor(fc, "*") as cursor: for row in cursor: print row[1]
with arcpy.da.SearchCursor(fc, "*") as cursor: for row in cursor: row.SITE_ID
I think you might be able to refer to it directly. For example:with arcpy.da.SearchCursor(fc, "*") as cursor: for row in cursor: row.SITE_ID
Good luck!
AttributeError: 'tuple' object has no attribute SITE_ID'
with arcpy.da.SearchCursor(fc, "*") as cursor: for row in cursor: row[2]
cur=arcpy.da.SearchCursor(fc, "*") c=0 #counter d={} #dictionary used to call the index for a given field name for field in cur.fields: d[field]=c c+=1 for row in cur: print row[d['SITE_ID']]
with arcpy.da.SearchCursor(fc, '*') as cur: for row in rows: print row[cur.fields.index('SITE_ID')]
with arcpy.da.SearchCursor(fc, '*') as cur: ind = cur.fields.index('SITE_ID') for row in rows: print row[ind]
with arcpy.da.SearchCursor(fc, 'SITE_ID') as cur: for row in rows: print row[0]
with arcpy.da.SearchCursor(fc, ['SITE_ID', 'OTHER_FIELD']) as cur: for row in rows: print row[0], row[1]