i want split byte such as split str with textwrap!
b = b'my bytes'
lst = textwrap.wrap(b,2)
but it give me a error:
TypeError: a bytes-like object is required, not 'dict'
import textwrap
b = b'byte text'
for i in textwrap.wrap(b,2):
print(i)
New contributor
SOFArminRh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.