numpy.chararray.index #

方法

字符数组。索引( sub , start = 0 , end = None ) [来源] #

与 类似find,但当找不到子字符串时会引发ValueError 。

也可以看看

char.index