How to obtain the binary representation of an integer in Python. With Python 2.6+, that's quite simple: print "{0:b}".format(i). Example:
確定! 回上一頁