代码示例
以下独立脚本显示了文件夹的一些属性:
import arcpy
# Create a Describe object
#
desc = arcpy.Describe("C:/data")
# Print the dataType and a workspace property
#
print("Data Type: " + desc.dataType)
print("Workspace Type: " + desc.workspaceType)
以下独立脚本显示了文件夹的一些属性:
import arcpy
# Create a Describe object
#
desc = arcpy.Describe("C:/data")
# Print the dataType and a workspace property
#
print("Data Type: " + desc.dataType)
print("Workspace Type: " + desc.workspaceType)