import arcpy


inFeature = arcpy.GetParameterAsText(0) #原始数据
try:
    fieldList = arcpy.ListFields(inFeature)
    for field in fieldList:
        arcpy.AddMessage("{0} is a type of {1} with a length of {2}"
        .format(field.name, field.type, field.length))

except Exception,e:
    print e.message();

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2021-10-01
猜你喜欢
  • 2021-07-26
  • 2022-03-01
  • 2022-12-23
  • 2021-09-21
  • 2022-01-16
  • 2022-12-23
  • 2021-06-15
相关资源
相似解决方案