跳至内容
首页Python

学习路径

Python 编程

更新时间 2026年5月
提升你的编程技能。 学习如何优化代码、编写函数和测试,并使用实践中的软件工程技术。
免费开始学习路径
Python编程
19 小时
28,710

创建您的免费帐户

继续操作即表示您接受我们的《使用条款》和《隐私政策》,并同意您的数据存储在美国。

深受数千家公司学习者的喜爱

Group

Training a Team?

Try for Business

学习路径描述

Python 编程

在这个技能学习路径中,你将基于 Python 编程基础技能学习路径中涵盖的概念和技能继续提升!通过利用上下文管理器和装饰器来增强你的自定义函数,并学习如何提高代码效率。 随着技能的提升,你还将了解软件工程概念,包括模块化、文档编写以及使用 pytest 进行自动化测试。 到本课程结束时,你将运用面向对象编程(OOP)技能来阅读、复用和维护你的代码。 开始这个学习路径,继续你的 Python 编程之旅。接下来,你将在学习如何按照最佳实践编写函数的过程中获得实践经验,例如如何编写文档以及使用上下文管理器和装饰器。 随着你的 Python 技能不断提升,你将进一步了解软件工程概念,包括模块化、文档编写和自动化测试,然后深入学习单元测试技能,如调试代码、测试驱动开发(TDD)以及使用 fixtures 和 mocking。 在此过程中,你将使用 pandas、NumPy、setuptools、pytest 和 pycodestyle 等包来实践 Python 编程。到本课程结束时,你将运用面向对象编程(OOP)技能来阅读、复用和维护你的代码。 开始这个学习路径,继续你的 Python 编程之旅。

先决条件

Python 编程基础
  • Chapter

    额外

    Context Managers

    If you've ever seen the "with" keyword in Python and wondered what its deal was, then this is the chapter for you! Context managers are a convenient way to provide connections in Python and guarantee that those connections get cleaned up when you are done using them. This chapter will show you how to use context managers, as well as how to write your own.

  • Chapter

    Decorators are an extremely powerful concept in Python. They allow you to modify the behavior of a function without changing the code of the function itself. This chapter will lay the foundational concepts needed to thoroughly understand decorators (functions as objects, scope, and closures), and give you a good introduction into how decorators are used and defined. This deep dive into Python internals will set you up to be a superstar Pythonista.

  • Chapter

    Now that you understand how decorators work under the hood, this chapter gives you a bunch of real-world examples of when and how you would write decorators in your own code. You will also learn advanced decorator concepts like how to preserve the metadata of your decorated functions and how to write decorators that take arguments.

  • Course

    4

    Writing Efficient Python Code

    Learn to write efficient code that executes quickly and allocates resources skillfully to avoid unnecessary overhead.

  • Project

    Review a data analysis workflow for adherence to Python standards and best-practices.

Python 编程
4 课程
学习路径完成

获得成就证明

将此证书添加到你的 LinkedIn 档案、简历或履历中
在社交媒体和绩效评估中分享
立即注册

加入超过19百万学习者,今天就开始Python 编程 !

创建您的免费帐户

继续操作即表示您接受我们的《使用条款》和《隐私政策》,并同意您的数据存储在美国。

通过 DataCamp for Mobile 提升您的数据技能

随时随地通过我们的移动课程和每日 5 分钟编程挑战提升技能。