· 무료 동영상 · Programming
무료 강의

Decorators in Practice

You'll write a timer decorator with functools.wraps, apply it with the @ syntax, and confirm the wrapped function still reports its original name, seeing clearly that a decorator is just a function that takes a function and returns a function. You'll then stack multiple decorators on a single function and watch how they layer one wrapper around another.

무료 · 가입 불필요
더 깊이 배우기

Python from First Principles to Pythonic Mastery

Learn Python syntax, the CPython data model, async, types, and the libraries that power real work

전체 강좌 보기 →
무료 동영상 더 보기