示例#1
0
 def test_other(self):
     self.assertEqual(bit_no(int('10010010011', 2)), 5)
示例#2
0
 def test_zero(self):
     self.assertEqual(bit_no(0), 0)