def add(n,m): while m: summ=n^m carry=(n&m)<<1 m=carry n=summ return n print(add(3,4))
原文地址:https://www.cnblogs.com/xzm123/p/9871390.html
时间: 2024-10-11 17:53:03
def add(n,m): while m: summ=n^m carry=(n&m)<<1 m=carry n=summ return n print(add(3,4))
原文地址:https://www.cnblogs.com/xzm123/p/9871390.html