Arcpy 随机选取部分要素并导出
# Import system modulesnimport arcpy, os, timenimport randomnfrom arcpy import envnnprint ‘程序开始:’ + str(time.ctime()) n# Set environment settingsnenv.workspace = “D:\刘金榜\pythonlearint.gdb”n
# Import system modulesnimport arcpy, os, timenimport randomnfrom arcpy import envnnprint ‘程序开始:’ + str(time.ctime()) n# Set environment settingsnenv.workspace = “D:\刘金榜\pythonlearint.gdb”n