i want to comapare two array. kor,eng each array consists of cid,mapx,mapy.
is kor
is eng i want to append list.
if eng(mapx)==kor(mapx) && eng(mapy)==kor(mpay):
newlist.append(kor(cid),eng(cid))
so i write a code
for i in eng:
for k in kor:
if eng[i][1]==kor[k][1] and eng[i][2]==kor[k][2]:
samedata.append((eng[i][0],kor[i][0]))
but IndexError: arrays used as indices must be of integer (or boolean) type
how to compare and append?..
Aucun commentaire:
Enregistrer un commentaire