下面程序的功能是,生成10个三位随机整数,并求出每个随机整数各位数字阶乘之和。并按照如下格式输出:411:4!+1!+1!=26。请将程序完善。 import random def fact(n): if n==0 or n==1: return 1 _______________ for i in range(1,n+1): s*=i return s lis=[] cnt=0 while cnt<10: x=random.randint(100,999) lis+=[x] cnt___________ for i in lis: sum1=0 st="" t=___________ for j in t: sum1+=fact(int(j)) st+=j+"!"+"+" print(i,":",st[:_____],"=",sum1)