python解法
不用加减乘除做加法
http://www.nowcoder.com/questionTerminal/59ac416b4b944300b617d4f7f111b215
# -*- coding:utf-8 -*-
class Solution:
def Add(self, num1, num2):
# write code here
res=[]
res.append(num1)
res.append(num2)
return sum(res)
class Solution:
def Add(self, num1, num2):
# write code here
res=[]
res.append(num1)
res.append(num2)
return sum(res)