python递归计算N! 2022-04-14 00:00:00 python 计算 递归 python递归计算N!,常规代码直接调用即可 def factorial(n): if n == 0: return 1 else: return n * factorial(n - 1) 相关文章