阶乘

2015-10-31 0 850
阶乘
def fact(x):
    return x > 1 and x * fact(x - 1) or 1
print fact(6)

遇见资源网 python 阶乘 http://www.ox520.com/15872.html

常见问题

相关文章

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

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