如何Python双阶乘
5! = 5*4*3*2*1 = 120;
print reduce(lambda x,y:x*y,range(1,6))#120
5!! = 5*3*1 = 15;
//这个怎么处理?
百合吧G
9 years, 1 month ago
5! = 5*4*3*2*1 = 120;
print reduce(lambda x,y:x*y,range(1,6))#120
5!! = 5*3*1 = 15;
//这个怎么处理?