def fact(n):
if n == 1:
return n
else:
return n * fact(n-1)
print(fact(24))
阶乘
最新推荐文章于 2022-10-30 22:07:06 发布
def fact(n):
if n == 1:
return n
else:
return n * fact(n-1)
print(fact(24))