CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
jackfrued

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: jackfrued/Python-100-Days
Path: blob/master/公开课/文档/第06次公开课-算法入门系列2-在水一方/code/example01.py
Views: 729
1
import sys
2
3
4
def fac(num):
5
if num == 0:
6
return 1
7
return num * fac(num - 1)
8
9
10
def main():
11
print(fac(59996))
12
13
14
if __name__ == '__main__':
15
sys.setrecursionlimit(60000)
16
main()
17
# for i in range(1000):
18
# print(f'{i}:'.rjust(3), fac(i))
19
20
21