Using Python to break a continuous string into components? -
This is what I want to do:
This is my specific "string" 00000000110000000000011000000000
P>
I need to add a new text file as the header with the original string.
I know how to split the string, if there were spaces like divisive but my string is continuous
They can be treated as 32-bit and 8-bit binary numbers, but they are just text in a text file (for now)!
I'm new to programming in Python Please, I need patient details, no generalization, no generalization.
Let's say I do not know anything.
Thanks,
Ralph
You should do this Which should do. See for more details.
& gt; & Gt; & Gt; S = "00000000110000000000011000000000"> gt; & Gt; & Gt; For the [i: i + 8] i.e. [0, lane (s) for [0: 00000000, '11000000', '00000110', '00000000'] Div>
Comments
Post a Comment