def fact(n): if n <= 1: return 1 else: return n*fact(n-1) def fact2(n): s = 1 for i in range(1, n+1): s = s * i return s
正确
错误