====== Raw Daten encodieren/decodieren ====== ===== Raw Daten String in Hex encodieren: ===== >>> x='\x01\xa5' >>> x=x.encode("hex") >>> x 01a5 ===== Hex in String decodieren: ===== >>> x=x.decode("hex") >>> x '\x01\xa5'