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)
| 770 | return asarray(center(self, width, fillchar)) |
| 771 | |
| 772 | def count(self, sub, start=0, end=None): |
| 773 | """ |
| 774 | Returns an array with the number of non-overlapping occurrences of |
| 775 | substring `sub` in the range [`start`, `end`]. |
| 776 | |
| 777 | See Also |
| 778 | -------- |
| 779 | char.count |
| 780 | |
| 781 | """ |
| 782 | return count(self, sub, start, end) |
| 783 | |
| 784 | def decode(self, encoding=None, errors=None): |
| 785 | """ |