numpy.core.defchararray.rfind()

numpy.core.defchararray.rfind

numpy.core.defchararray.rfind(a, sub, start=0, end=None) [source]

For each element in a, return the highest index in the string where substring sub is found, such that sub is contained within [start, end].

Calls str.rfind element-wise.

Parameters:

a : array-like of str or unicode

sub : str or unicode

start, end : int, optional

Optional arguments start and end are interpreted as in slice notation.

Returns:

out : ndarray

Output array of ints. Return -1 on failure.

See also

str.rfind

© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.12.0/reference/generated/numpy.core.defchararray.rfind.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部