cur = arcpy.UpdateCursor(FC) for row in cur: try: fieldVal = row.getValue(fieldOne) if fieldVal = xyz: value = row.setValue(newField, value)
cur = arcpy.UpdateCursor(FC) for row in cur: try: fieldVal = row.getValue(fieldOne) if fieldVal == xyz: value = row.setValue(newField, value) except Exception as err: Do something useful here or don't use try except at all
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.