Chapter 7, python variables, functions and their applications (7.7)------Recursive functions

Contents
7.7 Recursive functions
(1) Recursive composition and recursive process
(2) Recursive functions and Comparison of the use of loop statements (dynamic programming algorithms)
(3) Return in recursive functions, progression, return processes and the execution of parallel lines of code in the expression of the calling function itself
(4) When a recursive function runs recursion, it actually runs multiple functions in an orderly, hierarchical, and regular manner, and the variables defined by each function are independent

7.7 递归function

       The return value generally refers to the return of the function value corresponding to return. In this section, for the convenience of description, we use the word return result more often. It refers to a broader concept. It can mean returning a value or producing a result.

(1)Recursive composition and recursive process

       Recursion is calling itself in a procedure or function. A recursive function is a function that can call itself during execution. recursion

Guess you like

Origin blog.csdn.net/thefg/article/details/134364174