Advertisement
Guest User

endian_flip

a guest
Apr 26th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. def endian_flip(bs):
  2.     return ''.join([bs[-8:]] + [bs[-8*(i+1):-8*i] for i in range(1,len(bs)//8+1)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement