bytes.endswith()

bytes.endswith(suffix[, start[, end]]) bytearray.endswith(suffix[, start[, end]])

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

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

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

Please login to continue.