在Numpy Python中查找字符串数组的索引
什么是numpy函数,它遍历数组在Numpy Python中查找字符串数组的索引,python,arrays,numpy,indexing,format,Python,Arrays,Numpy,Indexing,Format,什么是numpy函数,它遍历数组a,然后输出分配数组b值的索引 代码: 预期产出: Indexes: 0, 3 phraseIndex=np.其中(a==短语) a=='hello'是做什么的? Indexes: 0, 3
a
,然后输出分配数组b
值的索引
代码:
预期产出:
Indexes: 0, 3
phraseIndex=np.其中(a==短语)
a=='hello'是做什么的?
Indexes: 0, 3