The road to wudao-the middle of the five-day refining phase, the road to five-day
High-order function: the function itself is passed to another function as a parameter, and a function is returned after running.
Recursion: other functions can be called in a function. The call itself is a recursive function (not efficient). 1. specify the function end conditions. The calculation workload and problem scale of each call should be reduced, and the number of calls should not be too large (python 999 times by default, resulting in stack overflow)
Decorator (itself a function): adds some functions to the function (without modifying the call method and code of the function), and the function itself does not change much and cannot be affected.
The decorator has been called before the function is called. @ Decorator: place it in the function to be decorated. Upload parameters!
(Laziness is the source of Sin)