摘要: def chu(x,y): m=x temp=1 if x>y: m=y for i in range(2,m+1): while x%i==0 and y%i==0: x=x/i y=y/i temp=temp*i print str(x)+":"+str(y)+":"+str(i) return x*y*tempgbs=reduce(chu,[x for x in range(1,70,2)])print gbs 阅读全文