Giới thiệu về Lập trình Python
Học Python, một ngôn ngữ lập trình phổ biến, bao gồm các khái niệm cốt lõi cho mọi thứ từ phát triển web và phần mềm đến khoa học dữ liệu và kiểm thử chất lượng. Các kỹ năng bạn sẽ đạt được bao gồm viết chương trình Python 3 và đơn giản hóa mã nguồn.
Tổng quan khóa học
📚 Tổng quan khóa học
Học Python, một ngôn ngữ lập trình phổ biến, bao gồm các khái niệm cốt lõi cho mọi thứ từ phát triển web và phần mềm đến khoa học dữ liệu và kiểm thử chất lượng. Những kỹ năng bạn sẽ đạt được bao gồm viết chương trình Python 3 và đơn giản hóa mã nguồn.
Tóm tắt ngắn gọn về các mục tiêu chính: Thành thạo nền tảng Python, điều khiển luồng thực thi, cấu trúc dữ liệu (List, String, Dictionary), hàm, mô-đun và xử lý tập tin, kết thúc bằng phần giới thiệu về Lập trình hướng đối tượng.
🎯 Mục tiêu học tập
- Viết và thực thi các kịch bản Python 3 cơ bản, áp dụng cú pháp cơ bản và kiểu dữ liệu tích hợp (int, float, str).
- Triển khai logic chương trình phức tạp bằng các cấu trúc điều khiển luồng (if/else, vòng lặp for/while) để quản lý các đường đi thực thi.
- Thiết kế và sử dụng hàm và mô-đun để tổ chức chương trình nhằm cải thiện khả năng tái sử dụng và duy trì.
- Quản lý dữ liệu hiệu quả bằng các cấu trúc cốt lõi của Python, bao gồm List, String và Dictionary.
- Tương tác với các nguồn dữ liệu bên ngoài bằng cách thực hiện thao tác nhập/xuất tập tin (văn bản, CSV và JSON).
Bài học 共 10 课时 · 预计 30.0h
Bài học
Lesson
This lesson introduces the fundamentals of Python programming, focusing on the print function, variable assignment, and core data types like strings and floats. Students will learn essential syntax rules, including the importance of indentation, code documentation with comments, and the proper use of quotes for textual data.
This lesson introduces control flow as the mechanism for directing program logic beyond simple sequential execution using selection structures like if/else statements. Students will learn to build dynamic programs by utilizing Boolean expressions, relational operators, and logical operators to evaluate conditions and determine execution paths.
This lesson introduces Python lists as versatile, ordered, and mutable sequences defined by square brackets that can store heterogeneous data types. Students will learn how to manipulate lists through indexing, slicing, and methods like append and remove, as well as how to manage complex data using nested list structures.
This lesson introduces iteration as a fundamental programming concept that uses loops to automate repetitive tasks and uphold the "Don't Repeat Yourself" (DRY) principle. Students learn to distinguish between definite iteration using `for` loops for known sequences and indefinite iteration using `while` loops for conditional tasks.
This lesson introduces functions as a fundamental tool for achieving modularity and adhering to the DRY (Don't Repeat Yourself) principle in Python. You will learn how to define and call functions using parameters to eliminate repetitive logic, improve code maintainability, and reduce the risk of errors.
This lesson introduces Python strings as immutable, ordered sequences of Unicode characters that can be defined using single or double quotes. Students will learn how to manipulate these objects using built-in methods and how to access specific characters through both positive and negative indexing.
This lesson introduces Python modules as reusable files that help organize code, prevent naming collisions, and improve maintainability. Students will learn how to use various import methods to access built-in libraries and structure their own projects into logical, manageable components.
This lesson introduces Python dictionaries as mutable, unordered collections that store data in unique key-value pairs for efficient retrieval. Students learn how to initialize dictionaries using curly braces, access values via keys rather than numerical indices, and manage data by adding, updating, or overriding entries.
This lesson introduces file input and output (I/O) as a method for achieving data persistence, allowing information to be stored beyond a program's execution. Students will learn how to use the open() function and various access modes to read, write, and append data to external files while ensuring proper resource management.
This lesson introduces Object-Oriented Programming (OOP) as a design approach that organizes code into self-contained objects by bundling data attributes with their associated methods. Students learn to distinguish between procedural programming and OOP, focusing on how custom classes act as blueprints to create cohesive, reusable, and real-world models of complex entities.