Shapefile = r"C:\xyz\xyz\your shapefile here.shp" FieldList = [["Field1","TEXT"], ["Field2","DOUBLE"]] for Column in FieldList: arcpy.AddField_management(Shapefile, Column[0], Column[1])
Shapefile = r"C:\xyz\xyz\your shapefile here.shp" FieldList = ["Field1", "Field2", "Field3", "etc"] for Column in FieldList: arcpy.AddField_management(Shapefile, Column, "TEXT")
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.