a = np.array([rows,cols])
[rows, cols] = data.shape
for i in range(rows):
for j in range(cols):
str=data[i,j]
for w in str:
if w>= u'\u4e00' and w<=u'\u9fa5':
a[i,j]+=w
报错:
TypeError: 'int' object is not iterable