设计一个函数把两个数字相加。不得使用 + 或者其他算术运算符。
示例:
输入: a = 1, b = 1 输出: 2
示例代码(sum):
class Solution(object):
def add(self, a, b):
"""
:type a: int
:type b: int
:rtype: int
"""
x = []
x.append(a)
x.append(b)
return sum(x)