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