Instructions 不會死的路線:212113 這個小說有點複雜我真的懶得做了我的天 還沒做完 劇情每年更新中
n= int(input("請輸入一個非負整數 n: ")) if n < 0: print("階層未定義(負數)") else: factorial = math.factorial(n) print(f"{n} 的階層是: {factorial}")