Python-100-Days/公开课/文档/第06次公开课-算法入门系列2-在水一方/code/example01.py

20 lines
263 B
Python
Raw Normal View History

2019-07-03 21:57:12 +08:00
import sys
def fac(num):
if num == 0:
return 1
return num * fac(num - 1)
def main():
print(fac(59996))
if __name__ == '__main__':
sys.setrecursionlimit(60000)
main()
# for i in range(1000):
# print(f'{i}:'.rjust(3), fac(i))