请大神看我写的代码,其中的
for i in range(1,smaller+1):
if x%i==0 and y%i==0:
gcd=i
为什么用这个就能求出最大公约数?最小公约数1为什么不列出来?
图看不太清 能放个大图吗
`单行代码`
关注海汼部落