numpy.core.defchararray.index
-
numpy.core.defchararray.index(a, sub, start=0, end=None)[source] -
Как
find, но вызывает исключениеValueError, если подстрока не найдена.Вызывает
str.indexпоэлементно.Параметры: a : array_like из str или unicode
sub : str или unicode
start, end : int, необязательно
Возвращает: out : ndarray
Массив выходных значений целого типа. Возвращает -1, если
subне найдено.
© 2008–2016 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.11.0/reference/generated/numpy.core.defchararray.index.html