現在讓我們寫一個Python 函式來計算一個數字的階乘。 ... if num < 0: print("Factorial of negative num does not exist") elif num == 0: return 1 ...
確定! 回上一頁