Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest May 17th, 2018 99 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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