Python

Compile python script to *.pyc

python -m py_compile


String operations:

String to byte array

>>> map(ord,'string')
[115, 116, 114, 105, 110, 103]



Hex data to string

>>> array.array('B',[0x01]).tostring()
'\x01'

No comments:

Post a Comment