Python 2-5 functional programming

Functional programming

Function is a kind of encapsulation supported by the built- in  Python  . We can decompose complex tasks into simple tasks by dividing large pieces of code into functions and calling functions layer by layer. This decomposition can be called process-oriented Program design . Function is the basic unit of process-oriented programming .

And functional programming (please note that there is an additional " style " )- Functional Programming , although it can also be attributed to process-oriented programming, but its ideas are closer to mathematical calculations .

We must first understand the computer ( Computer ) and computing ( Compute

Guess you like

Origin blog.csdn.net/weixin_43955170/article/details/112916713