Returns an array with the number of non-overlapping occurrences of substring `sub` in the range [`start`, `end`]. See Also -------- char.count
(self, sub, start=0, end=None)
| 2281 | return asarray(center(self, width, fillchar)) |
| 2282 | |
| 2283 | def count(self, sub, start=0, end=None): |
| 2284 | """ |
| 2285 | Returns an array with the number of non-overlapping occurrences of |
| 2286 | substring `sub` in the range [`start`, `end`]. |
| 2287 | |
| 2288 | See Also |
| 2289 | -------- |
| 2290 | char.count |
| 2291 | |
| 2292 | """ |
| 2293 | return count(self, sub, start, end) |
| 2294 | |
| 2295 | def decode(self, encoding=None, errors=None): |
| 2296 | """ |