求1 到10 的阶乘之和 factorial = 1 total = 0 for i in range(1,11): factorial = factorial * i total = total + factorial print(total)