" " Date: September 5-September 30 Requirements: 1. Summary of the book contents, finishing in the blog Park notes upload 2. After all the exercises in the course Note: "#" After the addition of the notes (42 pages per day, you can guarantee to read this book at the end of the month) "Key Notes" "chapter Exercises"-Heading 1, level two headings- Heading 2, Notes outline title, exercise title-Bold, 16px"
Key Notes
Summary
Functions are the most basic program structure provided by Python for maximum code reuse and minimization of code redundancy.
I. Why use a function
Maximized code reuse and minimization of code redundancy
Decomposition of processes
This chapter exercises:
1. What is the meaning of writing a function?
A: Code reuse, Code concise, support independent development, improve efficiency.
2. When will python create a function?
A: When you run to the DEF statement, the function is created.
3. When a function does not have a return statement, what does it return?
Answer: Returns the None object.
4. When does the statement inside the function definition run?
A: The function body executes when the function is called by a call expression later. Each time the function is called, the principal is executed once.
5. What is wrong with checking the object type of the incoming function?
A: The flexibility of the destruction function, the function of the Prophet on a particular type. Without such checks, the function may handle all object types: Any object that supports the intended interface of the function can be used.
The 16th chapter of the Python Learning Handbook, the basic function of 4th