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?
1
|
|||
|
3
|
Use struct.
|
||||
|
1
|
using .Net:
That will output the bytes as hex. You may have to clean up the syntax for IronPython. |
|||
|