题解 | #小乐乐计算求和#
小乐乐计算求和
http://www.nowcoder.com/practice/c98aeab2362c459dbc840d4c75f07729
import math n = int(input()) an = [math.factorial(i) for i in range (1,1+n)] print(sum(list(an)))
小乐乐计算求和
http://www.nowcoder.com/practice/c98aeab2362c459dbc840d4c75f07729
import math n = int(input()) an = [math.factorial(i) for i in range (1,1+n)] print(sum(list(an)))
相关推荐