Search This Blog

join binary strings in Python




b''.join(['abc', '\x01\x02\x03', 'efg'])




Execute it in python cli:

>>> b''.join(['abc', '\x01\x02\x03', 'efg'])
'abc\x01\x02\x03efg'

No comments:

Post a Comment