Loading...
Loading...
Compare original and translation side by side
A **decorator** is a function that modifies another function's behavior.
[First use: defined inline]
When we apply a decorator...
[Subsequent uses: term now familiar]A **decorator** is a function that modifies another function's behavior.
[First use: defined inline]
When we apply a decorator...
[Subsequent uses: term now familiar]undefinedundefined@login_required
def dashboard():
return "Welcome!"@login_requireddashboard()
**Why it matters**: Abstract explanations without examples create confusion; examples create mental anchors.@login_required
def dashboard():
return "Welcome!"@login_requireddashboard()
**重要性**: 无示例的抽象解释会造成困惑;示例能帮助学习者建立心理锚点,更好地理解概念。undefinedundefined
**Why it matters**: Context creates meaning; without it, instructions become mechanical steps.
**重要性**: 上下文赋予内容意义;若无上下文,操作步骤会变成机械的指令。