daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Dec 14th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ffffe7ba2cffffe7c52cffffe7c22cffffe7c12cffffe7c82cffffe7c62cffffe7b52cffffe7a02c
  2.    
  3. tmp = "ffffe7ba2cffffe7c52cffffe7c22cffffe7c12cffffe7c82cffffe7c62cffffe7b52cffffe7a02c"
  4. tmp.split("2c")
  5.  
  6. Out[37]:
  7. ['ffffe7ba',
  8.  'ffffe7c5',
  9.  'ffffe7c2',
  10.  'ffffe7c1',
  11.  'ffffe7c8',
  12.  'ffffe7c6',
  13.  'ffffe7b5',
  14.  'ffffe7a0',
  15.  '']
  16.    
  17. In [1]: s = "ffffe7ba2cffffe7c52cffffe7c22cffffe7c12cffffe7c82cffffe7c62cffffe7b52cffffe7a02c"
  18. In [2]: s.split("2c")
  19. Out[2]:
  20. ['ffffe7ba',
  21.  'ffffe7c5',
  22.  'ffffe7c2',
  23.  'ffffe7c1',
  24.  'ffffe7c8',
  25.  'ffffe7c6',
  26.  'ffffe7b5',
  27.  'ffffe7a0',
  28.  '']
  29.    
  30. myHex = 0xffffe7ba2cffffe7c52cffffe7c22cffffe7c12cffffe7c82cffffe7c62cffffe7b52cffffe7a02c
  31. myStringForHex = str(hex(myHex))[2:]
  32. myStringForHex.split('2c')
  33.    
  34. ['ffffe7ba',
  35.  'ffffe7c5',
  36.  'ffffe7c2',
  37.  'ffffe7c1',
  38.  'ffffe7c8',
  39.  'ffffe7c6',
  40.  'ffffe7b5',
  41.  'ffffe7a0',
  42.  '']
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