for中间应该是分号。
还有这个肯定不能过。[要来学习一下这个](http://baidu.physton.com/?q=%E9%AB%98%E7%B2%BE%E5%BA%A6)
by AThousandSuns @ 2018-05-05 20:00:13
@[启蒙5班许家宁](/space/show?uid=75709)
by AThousandSuns @ 2018-05-05 20:00:19
```cpp
for(long long i=1,i<=n;i++)ans+=ittr(n,i);
```
这里看看吧
by МiсDZ @ 2018-05-05 20:00:26
ou,打错了,没注意
by 憨憨憨憨批 @ 2018-05-06 16:00:24
为啥啊?python3 试了n多次,每次都compile error,但在我电脑上的idle和pycharm都正常啊
源代码附上:
S=0
N=int(input("number"))
for i in range (1,N):
N*=i
S+=N
print(S)
by Forever2001 @ 2018-06-13 09:36:00
@[Forever2001](/space/show?uid=64742) 不要输出number
by panda_2134 @ 2018-07-08 10:07:53
@[Forever2001](/space/show?uid=64742) PY3代码供参考:
```python
def fac(x):
if x == 0: return 1
else: return x * fac(x-1)
n = int(input())
print(sum([fac(_) for _ in range(1, n+1)]))
```
by panda_2134 @ 2018-07-08 10:12:19