力扣 67. 二进制求和 python AC

class Solution:
    def addBinary(self, a, b) -> str:
        return "{0:b}".format(int(a, 2) + int(b, 2))

你可能感兴趣的:(leetcode,算法,python)