deffact(x): if x ==1: return1 return x * fact(x-1) print(fact(1000))
``` 报错
```python
/Users/wenjun/PycharmProjects/python2018/venv/bin/python /Users/wenjun/PycharmProjects/python2018/day01/defdemo.py Traceback (most recent call last): File "/Users/wenjun/PycharmProjects/python2018/day01/defdemo.py", line 80, in <module> print(fact(1000)) File "/Users/wenjun/PycharmProjects/python2018/day01/defdemo.py", line 77, in fact return x * fact(x-1) File "/Users/wenjun/PycharmProjects/python2018/day01/defdemo.py", line 77, in fact return x * fact(x-1) File "/Users/wenjun/PycharmProjects/python2018/day01/defdemo.py", line 77, in fact return x * fact(x-1) [Previous line repeated 994 more times] File "/Users/wenjun/PycharmProjects/python2018/day01/defdemo.py", line 75, in fact if x ==1: RecursionError: maximum recursion depth exceeded in comparison