题目不是应该用二位数组解吗?同志们
row,col = map(int,input().split())
pic1 = [[0 for _ in range(0,col)]for _ in range(0,row)]
pic2 = [[0 for _ in range(0,col)]for _ in range(0,row)]
for i in range(0,row):
pic1[i] = list(map(int ,input().split()))
for i in range(0,row):
pic2[i] = list(map(int ,input().split()))
pxnum = 0
for i in range(0,row):
for j in range(0,col):
if pic1[i][j]==pic2[i][j]:
pxnum+=1
print(f"{pxnum/(row*col)*100:.2f}")