python练习题(1)
题目一:最小公倍数#最小公倍数def lcm(x, y): if x > y: greater = x else: greater = y for i in range(1,greater + 1): if((x % i == 0) and (y % i == 0)): lcm = i while(True): if((greater % x == 0) and (great