What is the write way to get the length of a string in Python, and then convert that int to a byte array? What is the right way to print that to the console for testing?
up vote
1
down vote
favorite
|
|||
|
up vote
3
down vote
|
Use struct.
|
||||
|
up vote
1
down vote
|
using .Net:
That will output the bytes as hex. You may have to clean up the syntax for IronPython. |
|||
|