How can I find match elements and index from two array?

前端 未结 0 1897
情歌与酒
情歌与酒 2021-01-07 08:41

For example,

a = [1, 1, 2, 4, 4, 4, 5, 6, 7, 100]
b = [1, 2, 2, 2, 2, 4, 5, 7, 8, 100]

I can find the match elements using

np.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题