numpy.char.chararray.count#

方法

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

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

参见

char.count