Chapter VII, the basis of the function of the system function 01

Chapter VII, the basis of the function system function

First, the system function

  1. What is the function
  2. Why use function
  3. Classification function
  4. 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
  5. 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
  1. Higher-order functions (function object)
  2. Nested functions
  3. Scope and name space
  4. Decorator
  5. Iterators and function generator and coroutine
  6. Ternary operator, the list parsing, generating the expression
  7. Recursive function calls
  8. Built-in functions
  9. Process-oriented programming and functional programming

Guess you like

Origin www.cnblogs.com/demiao/p/11334824.html