对任意正整数 a、b,以下两种写法的 gcd 函数返回值完全相同
def gcd1(a, b): return gcd1(b, a % b) if b else a def gcd2(a, b): while b: t = b b = a % b a = t return a
正确
错误