Guest User

Untitled

a guest
May 17th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. hex_string = '1314FFAAF810'
  2.  
  3. bytearray.fromhex(hex_string)
  4.  
  5. hex_string = '0x1314FFAAF810' # с нулем впереди то не проходит
  6.  
  7. >>> bytearray(int('0xdeadbeaf', 16).to_bytes(4, byteorder='big'))
  8. bytearray(b'xdexadxbexaf')
Add Comment
Please, Sign In to add comment