python1到100阶乘
时间: 2023-12-11 14:33:54 浏览: 67
精确计算1到100阶乘
以下是Python中求1到100的阶乘和的代码:
```python
factorial_sum = 0
factorial = 1
for i in range(1, 101):
factorial *= i
factorial_sum += factorial
print(factorial_sum)
```
输出结果为: 4037913...(共197位)
阅读全文