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")
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.