Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import binascii
- cadena = b'Python'
- # Representación en hexadecimal:
- hexadecimal = binascii.b2a_hex(cadena)
- print(hexadecimal)
- # Representación en bytes:
- print(binascii.a2b_hex(hexadecimal))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement