Format a list of values into a byte object
suggest changefrom struct import pack
print(pack('I3c', 123, b'a', b'b', b'c')) # b'{\x00\x00\x00abc'
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents