📅  最后修改于: 2022-03-11 14:45:09.222000             🧑  作者: Mango
代码示例1
def factorial(n):
return 1 if (n==1 or n==0) else n * factorial(n - 1);
num = 5;
print("Factorial of",num,"is", factorial(num))