Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Numpy Python中查找字符串数组的索引_Python_Arrays_Numpy_Indexing_Format - Fatal编程技术网

在Numpy Python中查找字符串数组的索引

在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

什么是numpy函数,它遍历数组
a
,然后输出分配数组
b
值的索引

代码:

预期产出:

Indexes: 0, 3
phraseIndex=np.其中(a==短语)


a=='hello'是做什么的?
Indexes: 0, 3