bytes.startswith()

bytes.startswith(prefix[, start[, end]]) bytearray.startswith(prefix[, start[, end]])

Return True if the binary data starts with the specified prefix, otherwise return False. prefix can also be a tuple of prefixes to look for. With optional start, test beginning at that position. With optional end, stop comparing at that position.

The prefix(es) to search for may be any bytes-like object.

doc_python
2016-10-07 17:28:09
Comments
Leave a Comment

Please login to continue.