剑指offer:不用加减乘除作加法(python)

题目描述 写一个函数,求两个整数之和,要求在函数体内不得使用+、-、*、/四则运算符号。python # -*- coding:utf-8 -*- class Solution: def Add(self, num1, num2): # write code here while num2 != 0: temp = num1 ^ nu
相关文章
相关标签/搜索