numpy.core.defchararray.rfind

原文:https://docs.scipy.org/doc/numpy/reference/generated/numpy.core.defchararray.rfind.html

译者:飞龙 UsyiyiCN

校对:(虚位以待)

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].

逐个调用str.rfind

参数:

a:数组类似str或unicode

sub:str或unicode

start,end:int,可选

可选参数startend被解释为切片表示法。

返回:

out:ndarray

输出数组的整数。失败时返回-1。

也可以看看

str.rfind