print('互質') break break 可用來中斷迴圈 else: print("最大公因數:", m)在上面的範例中,如果求出的最大公因數是 1,顯示兩數互質並使用 break,在迴圈中若遇到了 ...
確定! 回上一頁