|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/intermediate-python-master-decorators-from-scratch/
课程评论:没有评论
课程名称:中级Python:从零开始掌握装饰器 课程概述: 欢迎来到关于Python装饰器的最佳和最完整的指南!在本课程中,你将培养对Python装饰器的深入和实用理解,从基础知识开始。这个适合初学者的课程经过精心设计,确保你在从头开始构建坚实基础的同时,也能获得丰富的实践经验。在深入装饰器之前,我们将探讨一些作为该主题基础的基本原则。你将深入理解高阶函数、闭包和一等函数——这些都是揭开装饰器魔力的先决条件。主要内容包括:闭包、一等函数、可变参数、高阶函数。 一旦建立了牢固的功能基础,我们将深入迷人的装饰器世界。课程将从简单的介绍开始,逐渐过渡到更复杂的技术。我们的装饰器探索将包括:基本装饰器、参数化函数的装饰、装饰器链、支持可变参数的函数装饰以及保留装饰函数的元数据。 但这还不是全部!每个概念都会通过越来越难度的编码作业来加强。在整个课程中,我们还将探讨几个灵感来源于真实场景的技能挑战,包括:记录函数输出、计时运行性能、在模拟身份验证流程中使用装饰器、创建缓存机制。 本课程专门为希望深化对装饰器理解的Python程序员量身定制,作为功能编程的入口,或作为独立的中级编程模式。期待在课程中见到你!
Welcome to the best and most complete guide to Python decorators!In this course, you will cultivate a deep and practical understanding of decorators in Python, starting from the very basics. This beginner-friendly course is meticulously crafted to ensure you build a solid foundation from scratch while also getting ample practice in the process. Before diving into decorators, we'll explore the fundamental principles that serve as the building blocks of this intriguing topic. You'll gain a deep understanding of higher-order functions, closures, and first-class functions - prerequisites that unlock the magic of decorators. Foundational topics include: ClosuresFirst-Class FunctionsVariadicsHigher Order FunctionsOnce we have established a solid grasp of these functional foundations, we'll dive into the captivating world of decorators. We'll start with a gentle introduction and gradually move towards more intricate techniques. Our exploration of decorators will include:Basic DecoratorsDecorating Parameterized FunctionsChaining DecoratorsDecorating Functions With Variable ArityPreserving Metadata of Decorated FunctionsBut that's not all! Each concept will be reinforced through engaging coding assignments of increasing difficulty. Throughout the course, will also explore several skill challenges inspired by real-world scenarios including:Logging Function OutputTiming Runtime PerformanceUsing Decorators In Mocked Authentication FlowsCreating Cache MechanismsThis course is tailored specifically for Python programmers interested in deepening their understanding of decorators as a gateway to functional programming or as a standalone, intermediate-level programming pattern.See you inside!