import arcpy from arcpy import env env.workspace = "d:/Ideprojects/Defworkspace/DefGDB.mdb" cur = arcpy.UpdateCursor("fdmag") fields = arcpy.ListFields("fdmag") for row in cur: for field in fields: if field.name == "REPORT_DATE": # Save the current report date svrpt = row.getValue(field.name) if field.name == "INCIDENT_DT": if row.getValue(field.name) != None: print "value stays" else: row.setValue(field.name,svrpt) cur.updateRow(row) del row del cur
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.