num = int(input("請輸入數字:"))fatorial = 1if(num < 0): raise Exception("負數沒有階乘")elif(num == 0): print("0的階乘是1")else: for i in ...
確定! 回上一頁