ID EN
Struct

pack

Python 3.11

Return a bytes object containing the values v1, v2, … packed according to the format string format. The arguments must match the values required by the format exactly.

Syntax

PYTHON
struct.pack(format, v1, v2, ...)