原文:https://docs.scipy.org/doc/numpy/reference/generated/numpy.core.defchararray.find.html
校对:(虚位以待)
numpy.core.defchararray.
find
(a, sub, start=0, end=None)[source]对于每个元素,返回字符串中找到子字符串sub的最低索引。
逐个调用str.find。
For each element, return the lowest index in the string where substring sub is found, such that sub is contained in the range [start, end].
参数: | a:array_like of str或unicode sub:str或unicode start,end:int,可选
|
---|---|
返回: | out:ndarray或int
|
也可以看看