Python 递归函数 def fin(num): if num == 1: return 1 else: return fin(num -1) * num ret = fin(3) print (ret)