2021年3月10日星期三

Find the index value of coordinates in Python

I have two arrays as:

A = [[1,0],[2,5],[6,7],[3,6],[7,6],[0,2],[4,1],[9,3],[6,5],[5,8]]    B = [[6,7],[0,2],[6,5]]  

Firstly, I want to find the index value of A and then compare it to B and print the index value in B wrt A. What I expect is:

[2, 5, 8]  
https://stackoverflow.com/questions/66577711/find-the-index-value-of-coordinates-in-python March 11, 2021 at 02:53PM

没有评论:

发表评论