标签:style color for div amp on ef sp
二进制: >>> int(‘110‘, 2) -> 6
def PowTwoDivider(n):
if(n==0):
return 0
div = 1
while((n & div) == 0):
div = div << 1;
return div
//----------------------------
for x in range(256):
print(bin(x),":",bin(PowTwoDivider(x)) )
标签:style color for div amp on ef sp
原文地址:http://www.cnblogs.com/douzi2/p/3926314.html