integer to binary...
Alexis Roda
arv.nntp at gmail.com
Thu Jun 1 15:36:33 EDT 2006
En/na nicolasg at gmail.com ha escrit:
> does anyone know a module or something to convert numbers like integer
> to binary format ?
http://www.google.es/search?q=python+integer+to+binary
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/219300
> for example I want to convert number 7 to 0111 so I can make some
> bitwise operations...
python already provides some bitwise operators:
http://docs.python.org/ref/summary.html
HTH
More information about the Python-list
mailing list