python基础练习--求1+2!+3!+...+20!的和
题目:求1+2!+3!+...+20!的和。 1 # -*- coding:utf-8 -*- 2 n = input('请输入要计算的整数:') 3 a = 1 4 #l1 = []#检测用 5 sum1 = 0 6 for i in range(1, n+1): 7 num = i 8 for j in range(i-1, 0, -1...