ARCGIS中根据字段属性重新排序并自动编号的方法-百度经验 (baidu.com)
import arcpy
... rows = arcpy.UpdateCursor("预定边桩点","","","","编号 A")
... i=1
... for row in rows:
... row.BH=i
... i=i+1
... rows.updateRow(row)
... del rows
... del row
2023-11-07 20:07:34
ARCGIS中根据字段属性重新排序并自动编号的方法-百度经验 (baidu.com)
import arcpy
... rows = arcpy.UpdateCursor("预定边桩点","","","","编号 A")
... i=1
... for row in rows:
... row.BH=i
... i=i+1
... rows.updateRow(row)
... del rows
... del row