ArcGIS python生成uuid(guid)

with arcpy.da.UpdateCursor(in_table=in_table,field_names=in_field,) as cursor:
    for row in cursor:
        guid=str(uuid.uuid1()).upper() if is_upper else str(uuid.uuid1())
        row[0]=guid if have_link else guid.replace('-','')
        cursor.updateRow(row)
    del row,cursor

猜你喜欢

转载自www.cnblogs.com/yzhyingcool/p/12456593.html