自定義的fibonacci 函式,潛在問題是輸入負數,所以我們可以投擲ValueError("N must ... def fibonacci(N): if N < 0: raise ValueError("N must be non-negative") L ...
確定! 回上一頁