List Comparison including Index

后端 未结 0 1393
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-17 07:37
array_one = [1, 2, 3, 4]
array_two = [6, 7, 1, 2, 17, 23, 3, 48, 4]

lc = [e for e in array_one if e in array_two]

So far so good, I find the values

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