daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest May 17th, 2018 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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')
RAW Paste Data
Top