首页
编程
java
php
前端
首页
编程
java
php
前端
请问这个怎么写呢⁽⁽ଘ( ˙꒳˙ )ଓ⁾⁾
n
=int(input('请输入n:'))
s
=0
a
=f=1
for
i
in
range(n): s+=f
*a
a+=3
f
=-f
print
(s)
点击展开全文