ID EN
Array

tobytes

Python 3.11

Convert the array to an array of machine values and return the bytes representation (the same sequence of bytes that would be written to a file by the tofile() method.)

Syntax

PYTHON
tobytes()

See Also

tofile() tobytes()