Tất cả bài viết được gắn tag python
2 bài viết
Khóa học Python cơ bản từ đầu cho người mới bắt đầu. Học variables, data types, functions, OOP và các kiến thức nền tảng Python cho web development, data science, automation và nhiều lĩnh vực khác.
Module Python nâng cao với 20 bài học về decorators, generators, async/await, testing, và các kỹ thuật chuyên nghiệp.
23 bài viết
Giới thiệu tổng quan về Python - ngôn ngữ lập trình đa năng, phổ biến. Tìm hiểu lịch sử, đặc điểm, ứng dụng của Python và cách cài đặt, chạy chương trình Python đầu tiên.
Học về variables và data types trong Python. Tìm hiểu cách khai báo biến, các kiểu dữ liệu cơ bản (int, float, str, bool), type conversion và naming conventions.
Học về các operators trong Python - arithmetic, comparison, logical, assignment operators. Thực hiện phép tính, so sánh và logic với dữ liệu.
Học về strings trong Python - tạo chuỗi, string methods, slicing, formatting với f-strings, và xử lý chuỗi ký tự hiệu quả.
Học về lists trong Python - tạo list, truy cập phần tử, list methods cơ bản như append, extend, insert, remove, pop và các thao tác với list.
Học về lists nâng cao trong Python - list comprehension, nested lists, sorting với key, lambda functions, và các kỹ thuật xử lý list hiệu quả.
Học về tuples trong Python - collection bất biến, tuple packing/unpacking, so sánh với lists, và khi nào nên dùng tuples.
Học về dictionaries trong Python - key-value pairs, tạo dict, truy cập và thay đổi, dictionary methods cơ bản và operations.
Học về dictionaries nâng cao trong Python - dictionary comprehension, defaultdict, Counter, và các kỹ thuật xử lý dictionary hiệu quả.
Học về sets trong Python - collection duy nhất, set operations (union, intersection, difference), set methods và khi nào dùng sets.
Học về control flow trong Python - if/else statements, if-elif-else chains, nested conditions, logical operators và ternary operator.
Học về loops trong Python - for loop, while loop, break/continue, nested loops, enumerate, zip và các pattern thực tế.
Học về functions trong Python - định nghĩa hàm, parameters, return values, default arguments, keyword arguments và docstrings.
Học về *args, **kwargs, lambda functions, variable scope, recursion và advanced function concepts trong Python.
Học về modules trong Python - import, create modules, __name__, __main__, và module organization.
Học về packages trong Python - package structure, __init__.py, pip, virtual environments, và dependency management.
Học về File I/O trong Python - open, read, write files, file modes, with statement, và text file operations.
Học về CSV files, JSON files, binary files, và file system operations trong Python.
Học về exception handling trong Python - try/except, raise, finally, else, và built-in exception types.
Học về custom exceptions, exception chaining, context managers, traceback, và advanced error handling patterns.
Học về OOP trong Python - classes, objects, __init__, self, instance/class attributes, và methods.
Học về OOP nâng cao trong Python - inheritance, polymorphism, encapsulation, property decorators, và magic methods.
Bài tập thực hành tổng hợp kiến thức Python cơ bản với các dự án thực tế có hướng dẫn chi tiết.
33 bài viết
Học các khái niệm OOP nâng cao trong Python phần 1 - property decorators, descriptors, và data validation.
Học các khái niệm OOP nâng cao trong Python phần 2 - abstract classes, multiple inheritance, MRO, và metaclasses.
Học về decorators trong Python phần 1 - function decorators, closures, và functools.wraps.
Học về decorators trong Python phần 2 - class decorators, decorator classes, property decorators, và advanced patterns.
Học về iterators trong Python phần 1 - iteration protocol, cách tạo custom iterators, và iterator patterns.
Học về generators trong Python phần 2 - yield keyword, generator expressions, yield from, và lazy evaluation.
Học về context managers trong Python - with statement, context manager protocol, và contextlib module.
Học về advanced functions trong Python phần 1 - first-class functions, closures, và function factories.
Học về advanced functions trong Python phần 2 - *args, **kwargs, functools module, và function annotations.
Học về comprehensions trong Python - list, dict, set comprehensions, và generator expressions.
Học về regular expressions trong Python phần 1 - re module, basic patterns, và pattern matching functions.
Học về regular expressions trong Python phần 2 - groups, capturing, lookahead/lookbehind, flags, và advanced patterns.
Học cách làm việc với JSON trong Python - serialization, deserialization, custom encoders/decoders.
Học cách làm việc với dates và times trong Python - datetime module, timezones, và formatting.
Học về collections module trong Python - namedtuple, defaultdict, Counter, deque, và các data structures đặc biệt.
Học về async programming trong Python - async/await keywords, asyncio basics, và creating async functions.
Học về type hints trong Python - type hints syntax, typing module, mypy, và best practices.
Học về testing trong Python phần 1 - unittest module, pytest framework, và writing test cases.
Học về testing trong Python phần 2 - fixtures, mocking với unittest.mock, test coverage, và TDD basics.
Học về virtual environments trong Python - venv, virtualenv, pyenv, pipenv, poetry, và best practices.
Học về package structure trong Python - __init__.py, imports, setup.py, pyproject.toml, và distribution.
Học cách làm việc với databases trong Python - sqlite3, psycopg2, SQL queries, và ORM concepts.
Học PostgreSQL, connection pooling, và ORM concepts trong Python.
Học về logging trong Python - logging module, log levels, handlers, formatters, và best practices.
Học về performance optimization trong Python - profiling, memory profiling, optimization techniques, và caching.
Học về Python best practices - PEP 8, code organization, documentation, SOLID principles, và design patterns.
Học về SOLID principles và design patterns trong Python - SRP, OCP, LSP, ISP, DIP, Singleton, Factory, Observer, Strategy.
Học cách làm việc với APIs trong Python - requests library, HTTP methods, authentication, và error handling.
Kỹ thuật nâng cao cho APIs - async requests, webhooks, API testing, và advanced patterns.
Bài tập thực hành tổng hợp kiến thức Python nâng cao với các dự án thực tế có hướng dẫn chi tiết.
Tiếp tục xây dựng Web Scraper với database, validation, testing và CLI interface.
Thêm 2 projects nâng cao và bài tập tự làm với hướng dẫn chi tiết.
Hoàn thiện API Client Library và bài tập tự làm Async Task Queue System.