源码: a,b = 24,36 an_a = [] an_b = [] for i in range(1,a+1): if(a%i==0): an_a.append(i) for i in range(1,b+1): if(b%i==0): an_b.append(i) print("24的约数集合为:",end="") print(an_a) print("36的约数集合为:",end="") print(an_b) mul_a = [] mul_b = [] for i in range(1,6): mul_a.append(a*i)