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")
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.