print 'Creating Text File...' text = open(p.join(ws, "Addresses2.csv"), "w") text.writelines('"PID","FULL_ADD","POINT_X","POINT_Y"') srows = arcpy.SearchCursor(address) for row in srows: pid = row.getValue('PID') add = row.getValue('FULL_ADD') x = row.getValue('POINT_X') y = row.getValue('POINT_Y') text.writelines('\n"%s","%s",%s,%s' % (pid,add,x,y)) text.close() del row, srows print 'Text File Created Successfully'
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.