import sys
reload(sys)
sys.setdefaultencoding( "utf-8" )
import arcpy
import string
arcpy.env.workspace = r"C:\Users\Administrator\Desktop\s\pro\A49.gdb"
out = r"C:\Users\Administrator\Desktop\s\data100\da.gdb"
na = arcpy.env.workspace.split("\\")[-1].split(".")[0]
Files = arcpy.ListFeatureClasses()
for File in Files:
if File == "BOUA":
arcpy.Copy_management(File, out+"\\"+na)
网友评论