Python基础 · free preview
Functions at the Next Level
Write functions that accept flexible arguments, avoid the mutable-default trap, and wrap other functions with closures and decorators.
1. Overview
Overview
2. Flexible Arguments
Flexible Arguments
3. The Mutable Default Trap
The Mutable Default Trap
4. Lambda and Sorting Keys
Lambda and Sorting Keys
5. Closures
Closures
6. Decorators
Decorators
7. Flexible Logger
Flexible Logger
8. A Counting Decorator
A Counting Decorator
Practice this interactively
Free account · instant grading · spaced review that schedules itself.
Start this course for free