a = 1 # 1
a = 2 # 10
a = 3 # 11
a = 4 # 100
a = 5 # 101
print(a.bit_lengeh()) # 计算一个数字的二进制长度
转载于:https://www.cnblogs.com/Ajie-boby/p/10035153.html