python专家写阶乘

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

import operator as op
import functional as f
fact = lambda x: f.foldl(op.mul, 1, xrange(2, x + 1))
print fact(6)