본문 바로가기

꿀팁!

python binary data처리

 import binascii

binascii.hexlify( "aaa")

 

output>>'616161'

 

binascii.unhexlify( "616161")

output>>'aaa'