📜  python代码示例中的欧几里得除法

📅  最后修改于: 2022-03-11 14:47:00.231000             🧑  作者: Mango

代码示例1
def long_division(dividend,divisor,times = 0):
    if(dividend - (divisor * times) < divisor ):
        return dividend - (divisor * times)
    else:
        return  long_division(dividend,divisor,times + 1)

print(long_division(100,6)) # >> 4