首先通过basename属性吧”.shp“文件扩展名从文件名中移除,随后验证文件名,并将shapefile拷贝到地理数据库的要素中。代码如下: import arcpy import os from arcpy import env env.workspace = "C:/Data" outworkspace = "C:/Data/test/study.gdb" fclist = arcpy.ListFeatureClasses() for shapefile infclist:...