bytes.count()

bytes.count(sub[, start[, end]]) bytearray.count(sub[, start[, end]])

Return the number of non-overlapping occurrences of subsequence sub in the range [start, end]. Optional arguments start and end are interpreted as in slice notation.

The subsequence to search for may be any bytes-like object or an integer in the range 0 to 255.

Changed in version 3.3: Also accept an integer in the range 0 to 255 as the subsequence.

doc_python
2016-10-07 17:27:55
Comments
Leave a Comment

Please login to continue.