跳至内容
Python

Tracks

Python Programming

更新 2026年3月
Level-up your programming skills. Learn how to optimize code, write functions and tests, and use best-practice software engineering techniques.
免费开始赛道

包含优质的 or 团队

PythonProgramming19小时27,535

创建您的免费帐户

或者

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

深受数千家公司学员的喜爱

Group

培训2人或以上?

试试DataCamp for Business

曲目描述

Python Programming

In this track, you'll build on the concepts and skills covered in the Python Programming Fundamentals skill track!Enhance your custom functions by leveraging context managers and decorators, and learn how to improve the efficiency of your code. As your skills develop, you’ll then gain an understanding of software engineering concepts, including modularity, documentation, and automated testing using pytest. By the end of the track, you'll be using your object-oriented programming (OOP) skills to read, reuse, and maintain your code. Start this track to continue on your Python programming journey.Next, you’ll get hands-on experience as you learn how to write functions following best practices, such as how to write documentation and use context managers and decorators. As your Python skills develop, you’ll then gain an understanding of software engineering concepts, including modularity, documentation, and automated testing, before diving in to learn unit-testing skills like debugging code, Test Driven Development (TDD), and using fixtures and mocking. Along the way, you'll use packages like pandas, NumPy, setuptools, pytest, and pycodestyle to practice Python programming.By the end of the track, you'll be using your object-oriented programming (OOP) skills to read, reuse, and maintain your code. Start this track to continue on your Python programming journey.

先决条件

Python Programming Fundamentals
  • 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 Programming
4 Courses
跟踪完成

获得成就证明

将此证书添加到您的 LinkedIn 个人资料、简历或个人简介中。
在社交媒体和绩效考核中分享它

包含优质的 or 团队

立即报名

加入 19百万名学习者 立即开始Python Programming !

创建您的免费帐户

或者

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