numpy.chararray.index

method

chararray.index(sub, start=0, end=None)[源代码]

Like find, but raises ValueError when the substring is not found.

参见

char.index