这是最终版本
def zuixiao(x,y):
r=[]
k=2
while True:
if (x%k)==0 and (y%k==0):
r.append(k)
x=x/k
y=y/k
else:
k+=1
if k>x or k>y:
break
cm=1
for i in r:
cm=cm*i
jugg=cm*x*y
return int(jugg)