Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jack-Lee-Hiter/AlgorithmsByPython
/ listFactorial
Function
listFactorial
Recursion.py:11–15 ·
view source on GitHub ↗
(num)
Source
from the content-addressed store, hash-verified
9
10
# 递归求阶乘
11
def
listFactorial(num):
12
if
num <= 1:
13
return
1
14
else
:
15
return
num * listFactorial(num-1)
16
17
print(listFactorial(10))
18
Callers
1
Recursion.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected