在Python 中,可以使用内置函数 fractions.gcd() 来求三个数的最大公约数。例如: from fractions import gcd x = 60 y = 48 z = 36 result = gcd(x, y, ...
確定! 回上一頁