python十进制转二进制_python十进制转二进制,可指定位数
python十进制转二进制,可指定位数# convert a decimal (denary, base 10) integer to a binary string (base 2)# tested with Python24 vegaseat 6/1/2005def Denary2Binary(n):'''convert denary integer n to binary stri...