第11403题 单选题
给定求最大公约数的gcd递归Python程序,第二次调用gcd的实参和总调用次数是多少

小明正在学习辗转相除法求两数的最大公约数,他用Python语言编写了如下程序:

def gcd(a, b):
    if a % b == 0:
        return b
    return gcd(b, a % b)
print(gcd(168, 66))
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析