Python Decorator Purpose
单选题 中等
题目
什么是 Python decorator?
提示
Decorators 修改 or wrap other 函数.
解释
decorator 是函数那个 takes another 函数 as 输入 and 返回新 函数, 典型地添加 behavior. 你 apply 它使用 @decorator 语法 above 函数定义. Decorators 是 used for logging, 缓存, access control, and 更多.
相关资源
相关课程
- Decorators
Decorator 基础.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。