import arcpy max = 5 infile = r"e:\test\test.shp" for i in range(1,max+1): fname = "Field_"+str(i) arcpy.AddField_management(infile, fname, "DOUBLE") #starts with "Field_1", ends with "Field_5"
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.