Python简单算法的实现

#coding=utf-8
#!/usr/bin/python

def GCD(a,b):
    """
    :求两个数的最大公约数
    :param a:
    :param b:
    :return:
    """
    while(b!=0):
        reminder = a % b
        a = b
        b = reminder
    else:
        return a

c = GCD(260,40)
print(c)
原文地址:https://www.cnblogs.com/mike1314/p/8280640.html