'where' and slice at the same time

前端 未结 0 312
时光取名叫无心
时光取名叫无心 2021-01-21 17:51

I have a list of logicals test and the list of indices i of the same length. Now I want to select a[i] where test == True. Na

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