Packt
Object-Oriented Programming (OOP) and Advanced Python Topics

通过 Coursera Plus 获取 10,000 多门课程的 Accessibility

Packt

Object-Oriented Programming (OOP) and Advanced Python Topics

包含在 Coursera Plus

深入了解一个主题并学习基础知识。
中级 等级

推荐体验

2 周 完成
在 10 小时 一周
灵活的计划
自行安排学习进度
深入了解一个主题并学习基础知识。
中级 等级

推荐体验

2 周 完成
在 10 小时 一周
灵活的计划
自行安排学习进度

您将学到什么

  • Learn how to use Python's advanced OOP features such as inheritance, encapsulation, and polymorphism.

  • Master the implementation of decorators for function enhancements, including logging, validation, and authentication.

  • Understand and apply Python generators for efficient memory usage and iteration over large datasets.

  • Gain proficiency in handling files, including CSV, JSON, zip archives, and managing SQLite databases in Python.

您将获得的技能

要了解的详细信息

可分享的证书

添加到您的领英档案

最近已更新!

September 2025

作业

24 项作业

授课语言:英语(English)

了解顶级公司的员工如何掌握热门技能

Petrobras, TATA, Danone, Capgemini, P&G 和 L'Oreal 的徽标

积累特定领域的专业知识

本课程是 Python - Complete Python, Django, Data Science and ML Guide 专项课程 专项课程的一部分
在注册此课程时,您还会同时注册此专项课程。
  • 向行业专家学习新概念
  • 获得对主题或工具的基础理解
  • 通过实践项目培养工作相关技能
  • 获得可共享的职业证书

该课程共有22个模块

In this module, we will explore Python's object-oriented capabilities, focusing on defining classes, creating instances, and manipulating object attributes. We will dive into the usage of the 'self' parameter, method invocation through dot notation, and the role of the 'init' method in object initialization. Through practical examples, you'll gain a solid understanding of object creation, inheritance, and encapsulation in Python.

涵盖的内容

5个视频2篇阅读材料1个作业

In this module, we will explore the differences between instance methods, class methods, and static methods, emphasizing when to use each in Python programming. You’ll learn how to leverage static methods to perform class-related tasks without requiring an instance, and how to manage class-level data with class attributes. Practical examples will illustrate how to implement these techniques for effective object-oriented programming.

涵盖的内容

6个视频1个作业

In this module, we will dive into Python's magic methods, which allow user-defined classes to handle specific operations such as addition and comparison. By exploring practical examples like the __add__ and __eq__ magic methods, you'll learn how to customize how objects behave when combined or compared. These techniques will enhance your ability to design more intuitive and flexible class interactions.

涵盖的内容

2个视频1个作业

In this module, we will explore class extension through inheritance, focusing on how derived classes can inherit methods from parent classes while adding new functionality. You will learn how to extend classes to create specialized types, such as an AdminUser class from a base User class, enabling more complex and flexible class structures. Through practical examples, you'll gain a deeper understanding of inheritance in Python and how to design reusable and scalable object-oriented solutions.

涵盖的内容

2个视频1个作业

In this module, we will walk through building a functional forum system in Python, focusing on creating and linking classes for users, posts, and the forum itself. You will learn how to register users, associate posts with specific users, and create methods to find posts and users based on various attributes. By the end of the module, you'll also see how to enhance your code with type annotations for better clarity and maintainability, ensuring your class interactions are clean and efficient.

涵盖的内容

7个视频1个作业

In this module, we will explore the four key principles of Object-Oriented Programming: encapsulation, inheritance, polymorphism, and abstraction. You'll learn how encapsulation protects object states, how inheritance promotes reusability, and how polymorphism and abstraction help create flexible and simplified code. These concepts form the foundation of OOP and will guide you in designing efficient, scalable, and maintainable systems.

涵盖的内容

4个视频1个作业

In this module, we will explore the core concept of Python modules, learning how to group related functions, variables, and classes in a single file for better code organization. You’ll gain hands-on experience in importing entire modules, selectively importing specific elements, and managing module imports across various subfolders. By the end, you’ll be able to structure your code more efficiently, creating modular and reusable Python projects.

涵盖的内容

5个视频1个作业

In this module, we will dive into Python's extensive library of built-in modules, offering ready-to-use functionalities that save time and effort. You will also gain practical experience importing and utilizing these modules to enhance your code with minimal setup. This will enable you to take full advantage of Python's powerful standard library in your projects.

涵盖的内容

2个视频1个作业

In this module, we will explore the __name__ and __main__ constructs in Python, learning how to control the flow of execution in your code. You will see how to ensure functions run only when a script is executed directly, as opposed to being imported. Additionally, we will dive into Python packages, teaching you how to structure and organize your project for better maintainability and scalability.

涵盖的内容

3个视频1个作业

In this module, we will delve into JavaScript Object Notation (JSON), focusing on its syntax and widespread use for data exchange. You will gain hands-on experience converting Python objects to JSON and vice versa, while also learning how to format dictionaries using JSON for improved readability. Through practical tasks, you will solidify your knowledge of handling JSON effectively within your Python projects.

涵盖的内容

5个视频1个作业

In this module, we will cover the essentials of working with files in Python, including reading, writing, and managing files and directories. You’ll dive into file operations using both the os module and the more modern Path class, learning how to safely delete files and directories. You will also explore best practices such as using the with statement for optimal file handling. Through practical tasks, you’ll reinforce your understanding and ability to manage files effectively in Python projects.

涵盖的内容

11个视频1个作业

In this module, we will explore the zipfile module, which allows you to create, manage, and extract files from zip archives in Python. You will learn how to create zip archives for compressing data and efficiently read and extract contents from existing zip files. By the end of the module, you’ll be proficient in using zip archives for managing large datasets and files in your Python projects.

涵盖的内容

2个视频1个作业

In this module, we will explore the basics of working with CSV files in Python, including reading and writing data while addressing common challenges specific to the CSV format. You’ll also gain hands-on experience iterating over each row in a CSV file, extracting data for processing or analysis. This will equip you with the skills to work efficiently with CSV data in Python.

涵盖的内容

2个视频1个作业

In this module, we will dive into Python’s datetime module to learn how to handle and manipulate dates and times efficiently. You will gain hands-on experience with the datetime class for date-time operations, converting strings to datetime objects, and utilizing the timedelta class for working with time intervals. Additionally, we will explore the time module to handle time-based functionalities, enhancing your ability to manage dates and times in your Python projects.

涵盖的内容

5个视频1个作业

In this module, we will explore Python's random and secrets modules to generate random numbers, selections, and secure tokens. You will learn how to use methods like choices and shuffle for randomizing sequences, as well as how to generate cryptographically secure tokens and one-time passwords. Additionally, we’ll cover how to generate strong, secure passwords, ensuring your Python applications are both functional and secure.

涵盖的内容

5个视频1个作业

In this module, we will explore Python's math module, which provides a wide range of mathematical functions to simplify complex calculations. Additionally, we’ll dive into recursion, learning how to design and use recursive functions to break down problems into simpler subproblems. By the end of this module, you will be able to apply both mathematical operations and recursion in your Python programs to solve a variety of challenges.

涵盖的内容

2个视频1个作业

In this module, we will dive into Python’s powerful re module to explore regular expressions (regex) and their use in string manipulation. You’ll learn how to create patterns for matching strings, validate email addresses, replace substrings, and clean up unnecessary spaces in text. The module also includes a practical challenge focused on verifying password strength and structure, helping you apply regex techniques in real-world scenarios.

涵盖的内容

6个视频1个作业

In this module, we will cover the process of setting up a local SMTP server using smtp4dev in a Docker container for email testing. You will learn how to send emails programmatically using Python’s SMTP protocol, and enhance email content by integrating HTML templates for better formatting. The module concludes with best practices for cleaning up your testing environment by removing the Docker container.

涵盖的内容

4个视频1个作业

In this module, we will explore SQLite3 databases in Python, starting with how to create a database and design tables for data storage. You will practice inserting data into tables and retrieving it through SQL queries. The module concludes with a summary of SQLite concepts and key takeaways, solidifying your understanding of how to work with databases in Python.

涵盖的内容

4个视频1个作业

In this module, we will explore various other useful built-in Python modules, starting with the array module for efficient data storage and manipulation. You'll learn how to save and load arrays to and from files, manage program arguments with the sys module, and automate browser interactions using the webbrowser module. These tools will expand your ability to write more powerful and versatile Python programs.

涵盖的内容

4个视频1个作业

In this module, we will dive into Python virtual environments and PIP, learning how to manage project dependencies efficiently. You’ll explore how to create isolated environments for each project, activate and deactivate them, and install necessary packages. The module also covers saving package lists using a requirements.txt file and addressing challenges in package management, ensuring smooth and reproducible development setups.

涵盖的内容

8个视频1个作业

In this module, we will explore Pipenv as a powerful tool for managing Python virtual environments, simplifying dependency management, and ensuring isolated project setups. You will learn how to set up, install, and update packages within Pipenv environments, as well as recreate environments in new project folders. Additionally, we’ll explore how to integrate both venv and Pipenv with the PyCharm IDE to create a more efficient and seamless development experience.

涵盖的内容

7个视频1篇阅读材料3个作业

获得职业证书

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

位教师

Packt - Course Instructors
Packt
1,186 门课程292,430 名学生

提供方

Packt

从 Software Development 浏览更多内容

人们为什么选择 Coursera 来帮助自己实现职业发展

Felipe M.
自 2018开始学习的学生
''能够按照自己的速度和节奏学习课程是一次很棒的经历。只要符合自己的时间表和心情,我就可以学习。'
Jennifer J.
自 2020开始学习的学生
''我直接将从课程中学到的概念和技能应用到一个令人兴奋的新工作项目中。'
Larry W.
自 2021开始学习的学生
''如果我的大学不提供我需要的主题课程,Coursera 便是最好的去处之一。'
Chaitanya A.
''学习不仅仅是在工作中做的更好:它远不止于此。Coursera 让我无限制地学习。'
Coursera Plus

通过 Coursera Plus 开启新生涯

无限制访问 10,000+ 世界一流的课程、实践项目和就业就绪证书课程 - 所有这些都包含在您的订阅中

通过在线学位推动您的职业生涯

获取世界一流大学的学位 - 100% 在线

加入超过 3400 家选择 Coursera for Business 的全球公司

提升员工的技能,使其在数字经济中脱颖而出

常见问题