classmethod bytes.fromhex(string)
This bytes
class method returns a bytes object, decoding the given string object. The string must contain two hexadecimal digits per byte, with ASCII spaces being ignored.
>>> bytes.fromhex('2Ef0 F1f2 ') b'.\xf0\xf1\xf2'
Please login to continue.