Chapter VII, the basis of the function system function
First, the system function
- What is the function
- Why use function
- Classification function
How defined functions
grammar
Define the parameters that function, and has a function parameter scenarios
Non-parametric function is defined, and no tragic scenario
- Application of scenario definition function and an empty space function
call function
How to call
Function's return value
- Application of function parameters: the formal and actual parameters, the position parameter and the position of arguments, and argument keywords default parameter, * args, ** kwargs
- Higher-order functions (function object)
- Nested functions
- Scope and name space
- Decorator
- Iterators and function generator and coroutine
- Ternary operator, the list parsing, generating the expression
- Recursive function calls
- Built-in functions
- Process-oriented programming and functional programming