用最简洁的代码求最大公因子 def gcd(x, y): return gcd(y, x%y) if(y) else x if __name__ == "__main__": print(gcd(9, 27)) 发布者 常轩 总要做点什么吧! 查看常轩的所有文章