|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/how-functions-function-a-deeper-dive-into-python-functions/
课程评论:没有评论
**课程名称:** How Functions Function • A Deeper Dive Into Python Functions (Python 函数的运作方式 • Python 函数深度解析) **课程概述:** 本课程面向已掌握 Python 函数基础知识的学习者,深入探讨函数的中高级概念。通过本课程,您将学会编写更灵活、更强大的函数,从而能更好地在标准库和第三方库中使用函数。函数是打包可重用代码的关键,能帮助您高效地在任何时间、任何地点重复使用代码。理解参数和实参的各种选项,是有效定义和使用函数的核心。 **课程涵盖的主要内容:** * 位置参数和关键字参数,以及混合使用时的规则。 * 可选参数及默认值。 * `*args` 和 `**kwargs` 的用法。 * 使用 `/` 和 `*` 实现仅位置参数和仅关键字参数。 * 使用 `yield` 关键字创建生成器函数。 **关于讲师:** 讲师拥有十年的 Python 教学经验,曾是物理学家,并在其研究工作中使用了十多年的编程技术。讲师擅长以清晰、友好和轻松的方式进行教学,是《The Python Coding Book》的作者,并曾向全球的个人和企业教授 Python。讲师乐于助人,会认真回复学生提出的任何问题。
This course covers Python functions at intermediate and advanced levels. Once students have mastered the fundamentals of defining and calling functions, they're ready to start exploring more advanced topics. This course enables students to write more flexible and powerful functions and to be better placed to use functions in the standard library and third-party packages.Functions allow you to package code so you can re-use it flexibly and efficiently whenever and wherever you need to. Understanding all the options available when creating parameters and passing arguments is key to be able to define and use functions effectively.This course covers the following topics:Positional and keyword arguments, and the requirements when mixing argument categories.Optional arguments with default values*args and **kwargsPositional-only and keyword-only arguments using / and *Generator functions using the `yield` keyword--About me, your instructorI've been teaching Python for a decade. Before that, I worked as a physicist and used programming in my research work for over a decade.My focus is on communicating clearly, in a friendly and relaxed manner. I'm the author of the The Python Coding Book (you can ask Google for a "python book" and you'll find this book as one of the first entries) and I have taught Python to individuals and corporations around the world.And I'm approachable. You can ask me questions and I'll always reply, whether here on social media or anywhere else you can find me!