# coding=utf-8
import arcpy
import os
list_gdb = ['A0228_sign','A0301意见点','A0302点_sign']
path = r"C:\Users\Administrator\Desktop\aaa\查图"
path1 = os.path.join(path, "过程数据.gdb")
arcpy.env.workspace= path1
for name2 in list_gdb:
with arcpy.da.SearchCursor(name2, ["O_Name", "检查意见", "相片名称", "拍照点X", "拍照点Y", "备注", "备注1", "O_Name_1", "POINT_X","POINT_Y"]) as cursor:
for row in cursor:
row[1] = row[7]
curses.updateRow(row)
运行结果:
Traceback (most recent call last):
File "D:/kkk/asas.py", line 13, in <module>
row[1] = row[7]
TypeError: 'tuple' object does not support item assignment
麻烦各位帮看看是什么问题?