PyDocs

Nav

Python Runtime Services

bytes.startswith

builtins

method of bytes
  • bytes.startswith(prefix[, start[, end]])
Return True if the bytes starts with the specified prefix, False otherwise.

prefix
  A bytes or a tuple of bytes to try.
start
  Optional start position. Default: start of the bytes.
end
  Optional stop position. Default: end of the bytes.
0 Examples
No examples for builtins/bytes.startswith.
See Also
No see-alsos for builtins/bytes.startswith
0 Notes
No notes for bytes.startswith