numpy.chararray.rindex

原文:https://docs.scipy.org/doc/numpy/reference/generated/numpy.chararray.rindex.html

译者:飞龙 UsyiyiCN

校对:(虚位以待)

chararray.rindex(sub, start=0, end=None)[source]

rfind,但当找不到子字符串sub时,会引发ValueError

也可以看看

char.rindex