python黑客写阶乘

2015-07-16 0 301
python黑客写阶乘
import sys
@tailcall
def fact(x, acc=1):
    if x: return fact(x.__sub__(1), acc.__mul__(x))
    return acc
sys.stdout.write(str(fact(6)) + '\n')

遇见资源网 python python黑客写阶乘 http://www.ox520.com/15632.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务