ホーム · 無料ビデオ · 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

本編コースを見る →
無料ビデオをもっと見る