|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/functional-programming-with-python-introduction/
课程评论:没有评论
课程名称:Python函数式编程 课程概述: 欢迎参加这门全面的Python函数式编程入门课程!该课程适合初学者,您将逐步学习和实践Python的函数式功能。课程开始于对函数式编程关键概念的理解,包括: - 不可变性:数据不应当就地修改 - 纯函数:编写无副作用的函数 - 高阶函数:将函数视为与其他数据类型平等对待 - 递归:编写自我调用函数的模式 - 引用透明性:函数调用可以被其返回值替代而不改变程序行为 接下来,我们将探索Python为编写函数式代码提供的实用工具,包括: - map、filter、reduce、zip、any、all:用于处理可迭代对象的工具 - 列表、集合、字典和生成器推导式:创建各种数据结构的简洁方法 - 生成器函数和迭代器:可以暂停和恢复的函数 - 可变参数:可以接受不定数量参数的函数 在课程的最后部分,我们将讨论更高级的主题,包括: - 闭包:能够访问非局部变量的高阶函数 - 递归:自我调用的函数 - 部分函数应用:返回其他函数的函数,部分参数预填充 - 柯里化:部分函数应用的一种特殊情况 - 记忆化:缓存函数调用结果以加快执行速度 - 无限迭代器:永无止境的迭代器 - 函数重载:根据输入表现不同的函数 在整个课程中,您将通过20多个技能挑战来实践新掌握的技能,每个挑战后都有详细的视频解释,一起解析解决方案。本课程非常适合初学者,假设您没有Python经验。如果您从未接触过Python,课程附录中还包含了一整套Python编程入门介绍,涵盖语言的基础知识,包括基本数据类型、容器、控制流、循环、类等内容。期待在课程中见到您!
Welcome to the best and most comprehensive introduction to functional programming in Python!In this beginner-friendly course, you will get to learn and practice Python's functional capabilities step-by-step, from the ground up. The course will begin with a conceptual understanding of the key tenets of functional programming: immutability: the idea that data should not be modified in placepurity: the practice of writing functions that do not cause side effectshigher-order functions: treating functions as pari passu with other data typesrecursion: the pattern of writing functions that call themselvesreferential transparency: the principle that a function call can be replaced with its return value without changing the program's behaviorThen, we will explore practical utilities that Python offers to help us write functional code, including:map, filter, reduce, zip, any, all: utilities for working with iterableslist, set, dictionary, and generator comprehensions: concise ways of creating lists, sets, dictionaries, and generatorsgenerator functions and iterators: functions that can be paused and resumedvariable arity: functions that can take a variable number of arguments, unknown at the time of writing the function In the final, and longest part of the course, we will take a look at more advanced topics, including:closures: higher-order functions that can access non-local variablesrecursion: functions that call themselvespartial function application: functions that return other functions, with some arguments pre-filledcurrying: a special case of partial function applicationmemoization: caching the results of function calls to speed up executioninfinite iterators: iterators that never endfunctional overloading: functions that behave differently depending on their inputsThroughtout the course, you will get to practice your newly acquired skills through a set of more than 20 skill challenges, each of which will be followed with a detailed video explanation of the solution that we will walk through together.This course is very beginner-friendly and no python experience is assumed. If you've never worked with Python before, there's a full length introduction to Python programming included as an appendix, covering the fundamentals of the language from the basic data types to containers, control flow, loops, classes, and more. See you inside!