def gcd2(a, b):
while b > 0:
r = a % b
a = b
b = r
return a
print(gcd2(60, 21))
02-16
2733
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-16
1716
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交