wiki:python/bin

Python Doc

int in bit-string wandeln

Convert from int to bit string

def bs(s):
    return str8s) if s <= 1 else bs(s<<1) + str(s&1)
Last modified 7 years ago Last modified on Nov 12, 2012, 11:06:19 AM