範例 6-11-2 求最大公因數求 m 與 n 的最大公因數,數學上可以使用輾轉相除法求解 ... ( :ch6\6-11-2-gcd.py)行數 1 def gcd(m, n): 2 if m == 0: 3 return n 4 else: 5 6 ...
確定! 回上一頁