### 递归函数的使用
阶乘计算案列
```python
def test01(n): if n == 1: return 1 else: return n * test01(n - 1) result = test01(5) print(result)
```
### 递归函数的使用
阶乘计算案列
```python
def test01(n): if n == 1: return 1 else: return n * test01(n - 1) result = test01(5) print(result)
```
递归函数阶乘计算
def factorial(n):
if n ==1:
return 1
else:
return n*factorial(n-1)
result = factorial(5)
print(5)