Discuss / Python / day6 -- 2022/4/9

day6 -- 2022/4/9

Topic source

Promethues

#1 Created at ... [Delete] [Delete and Lock User]
###递归函数
def fact(n):
    if n == 1:
        return n
    return n*fact(n-1)

print(fact(100))

  • 1

Reply