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                    
                 
                    