主要考察的知识点为进制间的转换
class Solution: # @param n, an integer # @return an integer # 颠倒二进制位 def reverseBits(self, n): b = [i for i in str(bin(n))[2:].rjust(32,"0")][::-1] r = "" for i in b: r += i # print(r) return int(r,2)