python 阶乘

def fact(n):
    if n<=1:
        return 1    else:
        return n*fact(n-1)

print  fact(8)

评论

此博客中的热门博文

Rstudio 使用代理

ShadowsocksR Plus 就回来了~