arcpy显示指定表的索引属性
import arcpy feature_class = "c:/data/well.shp" # Create a list of indexes using the ListIndexes function indexes = arcpy.ListIndexes(feature_class) # Iterate through the list of indexes for index in indexes: # Print index properties print("Name: {0}".format(index.name)) print("\tType : {0}".format(index.isAscending)) print("\tScale : {0}".format(index.isUnique)) print("\tNumber of fields: {0}".format(len(index.fields)))