Python递归调用自己的函数

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

 

posted @ 2019-11-16 10:36  乔儿  阅读(402)  评论(0编辑  收藏  举报