直接利用现成函数
def addBinary(self, a, b): a = int(a,2) b = int(b,2) return bin(a+b)[2:]
输入的二进制存到数组里,存的时候最前面留一位给进位用。之后从末尾往前加