文本文件属性 (arcpy)
代码实例
Text File properties example (stand-alone script)
The following stand-alone script displays some Text File properties for a text file that has tabular data.
import arcpy
# Create a Describe object from the text file.
#
desc = arcpy.Describe("C:/data/evac_table.txt")
# Print some table properties
#
print "HasOID: " + str(desc.hasOID)
print "\nField names:"
for field in desc.fields:
print " " + field.name
5/10/2014