Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hex_string = '1314FFAAF810'
- bytearray.fromhex(hex_string)
- hex_string = '0x1314FFAAF810' # с нулем впереди то не проходит
- >>> bytearray(int('0xdeadbeaf', 16).to_bytes(4, byteorder='big'))
- bytearray(b'xdexadxbexaf')
Add Comment
Please, Sign In to add comment