numpy.char.chararray.count#

方法

char.chararray.count(sub, start=0, end=None)[源]#

返回一个数组,其中包含在范围 [start, end] 中子字符串 sub 的非重叠出现次数。

另请参阅

char.count