Is there a quick way to see the fields in a table via arcpy?

المشرف العام

Administrator
طاقم الإدارة
I frequently find myself in Python debug mode, trying to examine the fields of a layer or table.

arcpy.Describe(lyr).fields returns an array of which isn't much use.

About 10 times a day I find myself typing this:

flds = []for fld in arcpy.Describe(lyr).fields: flds.append(fld.name)

Is there a faster way to obtain a readable listing of the layer or table's fields in arcpy?



أكثر...
 
أعلى