daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest May 17th, 2018 99 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top