1、首先,打开arcgis。
2、打开菜单栏中的Python窗口工具。
3、记录待写入的数据名称。
4、在窗口中录入打开TXT,写入数据,保存TXT,关闭TXT代码:shp = arcpy.SearchCursor('Export_Output_3')date = open("C:/Users/Administrator/Desktop/123/aaaa.txt","a")for i in shp:date.write(i.dlmc)date.write("\n")date.close()
5、运行刚刚写好的代码。
6、最后,运行完成,txt写入成功。