From 24a29e306aa94a15ecb5d07b42285ac46727b6ec Mon Sep 17 00:00:00 2001 From: Samuel Huang Date: Wed, 8 Jul 2026 07:54:44 -0700 Subject: [PATCH 1/4] Refactor the entire lesson structure --- README.de.md | 83 ++++++++-------- README.es.md | 83 ++++++++-------- README.fr.md | 94 ++++++++++--------- README.hi.md | 84 +++++++++-------- README.ko.md | 91 +++++++++--------- README.md | 83 ++++++++-------- README.pt_br.md | 83 ++++++++-------- README.zh_tw.md | 81 ++++++++-------- ui/parse_lessons.py | 73 ++++++++------ ui/src/components/Sidebar.astro | 2 +- ui/src/i18n/ui.ts | 80 +++++++++------- .../{syntax => advanced}/arg_enforcement.py | 0 .../{syntax => advanced}/template_strings.py | 0 .../{syntax => advanced}/walrus_operator.py | 0 ultimatepython/classes/__init__.py | 0 ultimatepython/concurrency/__init__.py | 1 + .../{advanced => concurrency}/async.py | 0 .../subinterpreters.py | 0 .../{advanced => concurrency}/thread.py | 0 ultimatepython/data_structures/__init__.py | 0 ultimatepython/engineering/__init__.py | 1 + .../{advanced => engineering}/benchmark.py | 0 .../{syntax => engineering}/bitwise.py | 0 .../defaultdict.py | 0 .../{data_structures => engineering}/deque.py | 0 .../dict_union.py | 0 .../{data_structures => engineering}/heap.py | 0 .../itertools.py | 0 .../{advanced => engineering}/mocking.py | 0 .../namedtuple.py | 0 ultimatepython/fundamentals/__init__.py | 1 + .../comprehension.py | 0 .../{syntax => fundamentals}/conditional.py | 0 .../{data_structures => fundamentals}/dict.py | 0 .../{syntax => fundamentals}/expression.py | 0 .../{syntax => fundamentals}/function.py | 0 .../{data_structures => fundamentals}/list.py | 0 .../{syntax => fundamentals}/loop.py | 0 .../{data_structures => fundamentals}/set.py | 0 .../string.py | 0 .../tuple.py | 0 .../{syntax => fundamentals}/variable.py | 0 ultimatepython/oop/__init__.py | 1 + .../{classes => oop}/abstract_class.py | 0 .../{classes => oop}/basic_class.py | 0 .../{classes => oop}/encapsulation.py | 0 .../{classes => oop}/exception_class.py | 0 .../{classes => oop}/inheritance.py | 0 .../{classes => oop}/iterator_class.py | 0 ultimatepython/{advanced => oop}/mixin.py | 0 ultimatepython/{advanced => oop}/mro.py | 0 ultimatepython/stdlib/__init__.py | 1 + .../{advanced => stdlib}/data_format.py | 0 .../{advanced => stdlib}/date_time.py | 0 .../{advanced => stdlib}/file_handling.py | 0 ultimatepython/{advanced => stdlib}/regex.py | 0 ultimatepython/syntax/__init__.py | 0 57 files changed, 455 insertions(+), 387 deletions(-) rename ultimatepython/{syntax => advanced}/arg_enforcement.py (100%) rename ultimatepython/{syntax => advanced}/template_strings.py (100%) rename ultimatepython/{syntax => advanced}/walrus_operator.py (100%) delete mode 100644 ultimatepython/classes/__init__.py create mode 100644 ultimatepython/concurrency/__init__.py rename ultimatepython/{advanced => concurrency}/async.py (100%) rename ultimatepython/{advanced => concurrency}/subinterpreters.py (100%) rename ultimatepython/{advanced => concurrency}/thread.py (100%) delete mode 100644 ultimatepython/data_structures/__init__.py create mode 100644 ultimatepython/engineering/__init__.py rename ultimatepython/{advanced => engineering}/benchmark.py (100%) rename ultimatepython/{syntax => engineering}/bitwise.py (100%) rename ultimatepython/{data_structures => engineering}/defaultdict.py (100%) rename ultimatepython/{data_structures => engineering}/deque.py (100%) rename ultimatepython/{data_structures => engineering}/dict_union.py (100%) rename ultimatepython/{data_structures => engineering}/heap.py (100%) rename ultimatepython/{data_structures => engineering}/itertools.py (100%) rename ultimatepython/{advanced => engineering}/mocking.py (100%) rename ultimatepython/{data_structures => engineering}/namedtuple.py (100%) create mode 100644 ultimatepython/fundamentals/__init__.py rename ultimatepython/{data_structures => fundamentals}/comprehension.py (100%) rename ultimatepython/{syntax => fundamentals}/conditional.py (100%) rename ultimatepython/{data_structures => fundamentals}/dict.py (100%) rename ultimatepython/{syntax => fundamentals}/expression.py (100%) rename ultimatepython/{syntax => fundamentals}/function.py (100%) rename ultimatepython/{data_structures => fundamentals}/list.py (100%) rename ultimatepython/{syntax => fundamentals}/loop.py (100%) rename ultimatepython/{data_structures => fundamentals}/set.py (100%) rename ultimatepython/{data_structures => fundamentals}/string.py (100%) rename ultimatepython/{data_structures => fundamentals}/tuple.py (100%) rename ultimatepython/{syntax => fundamentals}/variable.py (100%) create mode 100644 ultimatepython/oop/__init__.py rename ultimatepython/{classes => oop}/abstract_class.py (100%) rename ultimatepython/{classes => oop}/basic_class.py (100%) rename ultimatepython/{classes => oop}/encapsulation.py (100%) rename ultimatepython/{classes => oop}/exception_class.py (100%) rename ultimatepython/{classes => oop}/inheritance.py (100%) rename ultimatepython/{classes => oop}/iterator_class.py (100%) rename ultimatepython/{advanced => oop}/mixin.py (100%) rename ultimatepython/{advanced => oop}/mro.py (100%) create mode 100644 ultimatepython/stdlib/__init__.py rename ultimatepython/{advanced => stdlib}/data_format.py (100%) rename ultimatepython/{advanced => stdlib}/date_time.py (100%) rename ultimatepython/{advanced => stdlib}/file_handling.py (100%) rename ultimatepython/{advanced => stdlib}/regex.py (100%) delete mode 100644 ultimatepython/syntax/__init__.py diff --git a/README.de.md b/README.de.md index ae0d4d87..0247ae5d 100644 --- a/README.de.md +++ b/README.de.md @@ -80,51 +80,56 @@ Es gibt zwei Möglichkeiten, die Module auszuführen: - Data model: [Data model](https://docs.python.org/3/reference/datamodel.html) ( 📚, 🤯 ) - Standard library: [The Python Standard Library](https://docs.python.org/3/library/) ( 📚, 🤯 ) - Built-in functions: [Built-in Functions](https://docs.python.org/3/library/functions.html) ( 📚 ) -2. **Syntax** - - Variable: [Built-in literals](ultimatepython/syntax/variable.py) ( 🍰 ) - - Expression: [Numeric operations](ultimatepython/syntax/expression.py) ( 🍰 ) - - Bitwise: [Bitwise operators](ultimatepython/syntax/bitwise.py) ( 🍰 ), [One's/Two's Complement](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) - - Conditional: [if | if-else | if-elif-else](ultimatepython/syntax/conditional.py) ( 🍰 ) - - Loop: [for-loop | while-loop](ultimatepython/syntax/loop.py) ( 🍰 ) - - Function: [def | lambda](ultimatepython/syntax/function.py) ( 🍰 ) - - Walrus operator: [Assignment expressions :=](ultimatepython/syntax/walrus_operator.py) ( 🤯 ) - - Argument enforcement: [Positional-only / | Keyword-only *](ultimatepython/syntax/arg_enforcement.py) ( 🤯 ) -3. **Daten-Strukturen** - - List: [List operations](ultimatepython/data_structures/list.py) ( 🍰 ) - - Tuple: [Tuple operations](ultimatepython/data_structures/tuple.py) - - Set: [Set operations](ultimatepython/data_structures/set.py) - - Dict: [Dictionary operations](ultimatepython/data_structures/dict.py) ( 🍰 ) - - Dict union: [Dictionary merge | and |=](ultimatepython/data_structures/dict_union.py) ( 🤯 ) - - Comprehension: [list | tuple | set | dict](ultimatepython/data_structures/comprehension.py) - - String: [String operations](ultimatepython/data_structures/string.py) ( 🍰 ) - - Deque: [deque](ultimatepython/data_structures/deque.py) ( 🤯 ) - - Namedtuple: [namedtuple](ultimatepython/data_structures/namedtuple.py) ( 🤯 ) - - Defaultdict: [defaultdict](ultimatepython/data_structures/defaultdict.py) ( 🤯 ) - - Iterator-Tools: [Iterator-Tools](ultimatepython/data_structures/itertools.py) ( 🤯 ) - - Time complexity: [cPython operations](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) -4. **Klassen** - - Basic class: [Basic definition](ultimatepython/classes/basic_class.py) ( 🍰 ) - - Inheritance: [Inheritance](ultimatepython/classes/inheritance.py) ( 🍰 ) - - Abstract class: [Abstract definition](ultimatepython/classes/abstract_class.py) - - Exception class: [Exception definition](ultimatepython/classes/exception_class.py) - - Iterator class: [Iterator definition | yield](ultimatepython/classes/iterator_class.py) ( 🤯 ) - - Encapsulation: [Encapsulation definition](ultimatepython/classes/encapsulation.py) +2. **Grundlagen** + - Variable: [Built-in literals](ultimatepython/fundamentals/variable.py) ( 🍰 ) + - Expression: [Numeric operations](ultimatepython/fundamentals/expression.py) ( 🍰 ) + - String: [String operations](ultimatepython/fundamentals/string.py) ( 🍰 ) + - List: [List operations](ultimatepython/fundamentals/list.py) ( 🍰 ) + - Tuple: [Tuple operations](ultimatepython/fundamentals/tuple.py) + - Set: [Set operations](ultimatepython/fundamentals/set.py) + - Dict: [Dictionary operations](ultimatepython/fundamentals/dict.py) ( 🍰 ) + - Conditional: [if | if-else | if-elif-else](ultimatepython/fundamentals/conditional.py) ( 🍰 ) + - Loop: [for-loop | while-loop](ultimatepython/fundamentals/loop.py) ( 🍰 ) + - Function: [def | lambda](ultimatepython/fundamentals/function.py) ( 🍰 ) + - Comprehension: [list | tuple | set | dict](ultimatepython/fundamentals/comprehension.py) +3. **Objektorientierte Programmierung** + - Basic class: [Basic definition](ultimatepython/oop/basic_class.py) ( 🍰 ) + - Inheritance: [Inheritance](ultimatepython/oop/inheritance.py) ( 🍰 ) + - Encapsulation: [Encapsulation definition](ultimatepython/oop/encapsulation.py) + - Abstract class: [Abstract definition](ultimatepython/oop/abstract_class.py) + - Exception class: [Exception definition](ultimatepython/oop/exception_class.py) + - Iterator class: [Iterator definition | yield](ultimatepython/oop/iterator_class.py) ( 🤯 ) + - Mixin: [Mixin definition](ultimatepython/oop/mixin.py) ( 🤯 ) + - Method resolution order: [mro](ultimatepython/oop/mro.py) ( 🤯 ) +4. **Standardbibliothek** + - File Handling: [File Handling](ultimatepython/stdlib/file_handling.py) ( 🤯 ) + - Regular expression: [search | findall | match | fullmatch](ultimatepython/stdlib/regex.py) ( 🤯 ) + - Data format: [json | xml | csv](ultimatepython/stdlib/data_format.py) ( 🤯 ) + - Datetime: [datetime | timezone](ultimatepython/stdlib/date_time.py) ( 🤯 ) 5. **Fortgeschrittene** - Decorator: [Decorator definition | wraps](ultimatepython/advanced/decorator.py) ( 🤯 ) - - File Handling: [File Handling](ultimatepython/advanced/file_handling.py) ( 🤯 ) - Context manager: [Context managers](ultimatepython/advanced/context_manager.py) ( 🤯 ) - - Method resolution order: [mro](ultimatepython/advanced/mro.py) ( 🤯 ) - - Mixin: [Mixin definition](ultimatepython/advanced/mixin.py) ( 🤯 ) - Metaclass: [Metaclass definition](ultimatepython/advanced/meta_class.py) ( 🤯 ) - - Thread: [ThreadPoolExecutor](ultimatepython/advanced/thread.py) ( 🤯 ) - - Asyncio: [async | await](ultimatepython/advanced/async.py) ( 🤯 ) - Weak reference: [weakref](ultimatepython/advanced/weak_ref.py) ( 🤯 ) - - Benchmark: [cProfile | pstats](ultimatepython/advanced/benchmark.py) ( 🤯 ) - - Mocking: [MagicMock | PropertyMock | patch](ultimatepython/advanced/mocking.py) ( 🤯 ) - - Regular expression: [search | findall | match | fullmatch](ultimatepython/advanced/regex.py) ( 🤯 ) - - Data format: [json | xml | csv](ultimatepython/advanced/data_format.py) ( 🤯 ) - - Datetime: [datetime | timezone](ultimatepython/advanced/date_time.py) ( 🤯 ) + - Walrus operator: [Assignment expressions :=](ultimatepython/advanced/walrus_operator.py) ( 🤯 ) + - Argument enforcement: [Positional-only / | Keyword-only *](ultimatepython/advanced/arg_enforcement.py) ( 🤯 ) - Pattern Matching: [match | case](ultimatepython/advanced/pattern_matching.py) ( 🤯 ) + - Template strings: [Template strings (PEP 750)](ultimatepython/advanced/template_strings.py) ( 🤯 ) +6. **Nebenläufigkeit** + - Thread: [ThreadPoolExecutor](ultimatepython/concurrency/thread.py) ( 🤯 ) + - Asyncio: [async | await](ultimatepython/concurrency/async.py) ( 🤯 ) + - Subinterpreters: [concurrent.interpreters](ultimatepython/concurrency/subinterpreters.py) ( 🤯 ) +7. **Softwaretechnik** + - Mocking: [MagicMock | PropertyMock | patch](ultimatepython/engineering/mocking.py) ( 🤯 ) + - Benchmark: [cProfile | pstats](ultimatepython/engineering/benchmark.py) ( 🤯 ) + - Bitwise: [Bitwise operators](ultimatepython/engineering/bitwise.py) ( 🍰 ), [One's/Two's Complement](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) + - Deque: [deque](ultimatepython/engineering/deque.py) ( 🤯 ) + - Namedtuple: [namedtuple](ultimatepython/engineering/namedtuple.py) ( 🤯 ) + - Defaultdict: [defaultdict](ultimatepython/engineering/defaultdict.py) ( 🤯 ) + - Iterator-Tools: [Iterator-Tools](ultimatepython/engineering/itertools.py) ( 🤯 ) + - Dict union: [Dictionary merge | and |=](ultimatepython/engineering/dict_union.py) ( 🤯 ) + - Heap: [heap queue](ultimatepython/engineering/heap.py) ( 🤯 ) + - Time complexity: [cPython operations](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) ## Zusätzliche Ressourcen diff --git a/README.es.md b/README.es.md index 24317e2a..75a77e8a 100644 --- a/README.es.md +++ b/README.es.md @@ -78,51 +78,56 @@ Hay dos maneras de ejecutar los módulos: - Modelo de datos: [Modelo de datos](https://docs.python.org/3/reference/datamodel.html) ( 📚, 🤯 ) - Librería estándar: [La librería estándar de Python](https://docs.python.org/3/library/) ( 📚, 🤯 ) - Funciones integradas: [Funciones integradas](https://docs.python.org/3/library/functions.html) ( 📚 ) -2. **Sintaxis** - - Variables: [Literales integrados](ultimatepython/syntax/variable.py) ( 🍰 ) - - Expresiones: [Operaciones numéricas](ultimatepython/syntax/expression.py) ( 🍰 ) - - Bit a bit: [Operadores bit a bit](ultimatepython/syntax/bitwise.py) ( 🍰 ), [Complemento a uno/dos](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) - - Condicionales: [if | if-else | if-elif-else](ultimatepython/syntax/conditional.py) ( 🍰 ) - - Iteraciones: [for-loop | while-loop](ultimatepython/syntax/loop.py) ( 🍰 ) - - Funciones: [def | lambda](ultimatepython/syntax/function.py) ( 🍰 ) - - Operador morsa: [Expresiones de asignación :=](ultimatepython/syntax/walrus_operator.py) ( 🤯 ) - - Aplicación de argumentos: [Solo posicional / | Solo palabra clave *](ultimatepython/syntax/arg_enforcement.py) ( 🤯 ) -3. **Estructura de datos** - - Lista: [Operaciones con listas](ultimatepython/data_structures/list.py) ( 🍰 ) - - Tupla: [Operaciones con tuplas](ultimatepython/data_structures/tuple.py) - - Set: [Operaciones con sets](ultimatepython/data_structures/set.py) - - Diccionario: [Operaciones con dicts](ultimatepython/data_structures/dict.py) ( 🍰 ) - - Unión de diccionarios: [Fusión de diccionarios | y |=](ultimatepython/data_structures/dict_union.py) ( 🤯 ) - - Comprensión: [list | tuple | set | dict](ultimatepython/data_structures/comprehension.py) - - Cadena: [Operaciones con strings](ultimatepython/data_structures/string.py) ( 🍰 ) - - Deque: [deque](ultimatepython/data_structures/deque.py) ( 🤯 ) - - Namedtuple: [namedtuple](ultimatepython/data_structures/namedtuple.py) ( 🤯 ) - - Defaultdict: [defaultdict](ultimatepython/data_structures/defaultdict.py) ( 🤯 ) - - Herramientas de iteradores: [Herramientas de iteradores](ultimatepython/data_structures/itertools.py) ( 🤯 ) - - Complejidad de tiempo: [Operaciones de cPython](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) -4. **Clases** - - Clase básica: [Definición de básica](ultimatepython/classes/basic_class.py) ( 🍰 ) - - Herencia: [Herencia](ultimatepython/classes/inheritance.py) ( 🍰 ) - - Clase abstracta: [Definición de abstracta](ultimatepython/classes/abstract_class.py) - - Clase de excepción: [Definición de excepción](ultimatepython/classes/exception_class.py) - - Clase iteradora: [Definición de iteradora | yield](ultimatepython/classes/iterator_class.py) ( 🤯 ) - - Encapsulación: [Definición de encapsulación](ultimatepython/classes/encapsulation.py) +2. **Fundamentos** + - Variables: [Literales integrados](ultimatepython/fundamentals/variable.py) ( 🍰 ) + - Expresiones: [Operaciones numéricas](ultimatepython/fundamentals/expression.py) ( 🍰 ) + - Cadena: [Operaciones con strings](ultimatepython/fundamentals/string.py) ( 🍰 ) + - Lista: [Operaciones con listas](ultimatepython/fundamentals/list.py) ( 🍰 ) + - Tupla: [Operaciones con tuplas](ultimatepython/fundamentals/tuple.py) + - Set: [Operaciones con sets](ultimatepython/fundamentals/set.py) + - Diccionario: [Operaciones con dicts](ultimatepython/fundamentals/dict.py) ( 🍰 ) + - Condicionales: [if | if-else | if-elif-else](ultimatepython/fundamentals/conditional.py) ( 🍰 ) + - Iteraciones: [for-loop | while-loop](ultimatepython/fundamentals/loop.py) ( 🍰 ) + - Funciones: [def | lambda](ultimatepython/fundamentals/function.py) ( 🍰 ) + - Comprensión: [list | tuple | set | dict](ultimatepython/fundamentals/comprehension.py) +3. **Programación orientada a objetos** + - Clase básica: [Definición de básica](ultimatepython/oop/basic_class.py) ( 🍰 ) + - Herencia: [Herencia](ultimatepython/oop/inheritance.py) ( 🍰 ) + - Encapsulación: [Definición de encapsulación](ultimatepython/oop/encapsulation.py) + - Clase abstracta: [Definición de abstracta](ultimatepython/oop/abstract_class.py) + - Clase de excepción: [Definición de excepción](ultimatepython/oop/exception_class.py) + - Clase iteradora: [Definición de iteradora | yield](ultimatepython/oop/iterator_class.py) ( 🤯 ) + - Mixin: [Definición de Mixin](ultimatepython/oop/mixin.py) ( 🤯 ) + - Orden de resolución de método (MRO por sus siglas en inglés): [mro](ultimatepython/oop/mro.py) ( 🤯 ) +4. **Librería estándar** + - Manejo de archivos: [Manejo de archivos](ultimatepython/stdlib/file_handling.py) ( 🤯 ) + - Expresiones regulares: [search | findall | match | fullmatch](ultimatepython/stdlib/regex.py) ( 🤯 ) + - Formatos de datos: [json | xml | csv](ultimatepython/stdlib/data_format.py) ( 🤯 ) + - Fecha y hora: [datetime | timezone](ultimatepython/stdlib/date_time.py) ( 🤯 ) 5. **Avanzado** - Decorador: [Definición de decorador | wraps](ultimatepython/advanced/decorator.py) ( 🤯 ) - - Manejo de archivos: [Manejo de archivos](ultimatepython/advanced/file_handling.py) ( 🤯 ) - Gestor de contexto: [Gestores de contexto](ultimatepython/advanced/context_manager.py) ( 🤯 ) - - Orden de resolución de método (MRO por sus siglas en inglés): [mro](ultimatepython/advanced/mro.py) ( 🤯 ) - - Mixin: [Definición de Mixin](ultimatepython/advanced/mixin.py) ( 🤯 ) - Metaclase: [Definición de metaclase](ultimatepython/advanced/meta_class.py) ( 🤯 ) - - Hilos: [ThreadPoolExecutor](ultimatepython/advanced/thread.py) ( 🤯 ) - - Asyncio: [async | await](ultimatepython/advanced/async.py) ( 🤯 ) - Referencias débiles: [weakref](ultimatepython/advanced/weak_ref.py) ( 🤯 ) - - Referencia: [cProfile | pstats](ultimatepython/advanced/benchmark.py) ( 🤯 ) - - Mocking: [MagicMock | PropertyMock | patch](ultimatepython/advanced/mocking.py) ( 🤯 ) - - Expresiones regulares: [search | findall | match | fullmatch](ultimatepython/advanced/regex.py) ( 🤯 ) - - Formatos de datos: [json | xml | csv](ultimatepython/advanced/data_format.py) ( 🤯 ) - - Fecha y hora: [datetime | timezone](ultimatepython/advanced/date_time.py) ( 🤯 ) + - Operador morsa: [Expresiones de asignación :=](ultimatepython/advanced/walrus_operator.py) ( 🤯 ) + - Aplicación de argumentos: [Solo posicional / | Solo palabra clave *](ultimatepython/advanced/arg_enforcement.py) ( 🤯 ) - Coincidencia de patrones: [match | case](ultimatepython/advanced/pattern_matching.py) ( 🤯 ) + - Template strings: [Template strings (PEP 750)](ultimatepython/advanced/template_strings.py) ( 🤯 ) +6. **Concurrencia** + - Hilos: [ThreadPoolExecutor](ultimatepython/concurrency/thread.py) ( 🤯 ) + - Asyncio: [async | await](ultimatepython/concurrency/async.py) ( 🤯 ) + - Subinterpretes: [concurrent.interpreters](ultimatepython/concurrency/subinterpreters.py) ( 🤯 ) +7. **Ingeniería** + - Mocking: [MagicMock | PropertyMock | patch](ultimatepython/engineering/mocking.py) ( 🤯 ) + - Referencia: [cProfile | pstats](ultimatepython/engineering/benchmark.py) ( 🤯 ) + - Bit a bit: [Operadores bit a bit](ultimatepython/engineering/bitwise.py) ( 🍰 ), [Complemento a uno/dos](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) + - Deque: [deque](ultimatepython/engineering/deque.py) ( 🤯 ) + - Namedtuple: [namedtuple](ultimatepython/engineering/namedtuple.py) ( 🤯 ) + - Defaultdict: [defaultdict](ultimatepython/engineering/defaultdict.py) ( 🤯 ) + - Herramientas de iteradores: [Herramientas de iteradores](ultimatepython/engineering/itertools.py) ( 🤯 ) + - Unión de diccionarios: [Fusión de diccionarios | y |=](ultimatepython/engineering/dict_union.py) ( 🤯 ) + - Heap: [heap queue](ultimatepython/engineering/heap.py) ( 🤯 ) + - Complejidad de tiempo: [Operaciones de cPython](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) ## Recursos adicionales diff --git a/README.fr.md b/README.fr.md index 1a6e4971..12e2f6db 100644 --- a/README.fr.md +++ b/README.fr.md @@ -87,54 +87,56 @@ Deux méthodes sont possibles :     - Bibliothèque standard : [Bibliothèque standard Python](https://docs.python.org/3/library/) ( 📚, 🤯 )     - Fonctions intégrées : [Fonctions intégrées](https://docs.python.org/3/library/functions.html) ( 📚 ) -2. **Syntaxe** -    - Variable : [Littéraux intégrés](ultimatepython/syntax/variable.py) ( 🍰 ) -    - Expression : [Opérations numériques](ultimatepython/syntax/expression.py) ( 🍰 ) -    - Opérateurs binaires : [Opérateurs binaires](ultimatepython/syntax/bitwise.py) ( 🍰 ), [Complément à un et à deux](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) -    - Conditionnelle : [if | if-else | if-elif-else](ultimatepython/syntax/conditional.py) ( 🍰 ) -    - Boucle : [for-loop | while-loop](ultimatepython/syntax/loop.py) ( 🍰 ) -    - Fonction : [def | lambda](ultimatepython/syntax/function.py) ( 🍰 ) - - Opérateur morse : [Expressions d'affectation :=](ultimatepython/syntax/walrus_operator.py) ( 🤯 ) - - Application d'arguments : [Positionnels uniquement / | Mots-clés uniquement *](ultimatepython/syntax/arg_enforcement.py) ( 🤯 ) - -3. **Structures de données** -    - Liste : [Opérations sur les listes](ultimatepython/data_structures/list.py) ( 🍰 ) -    - Tuple : [Opérations sur les tuples](ultimatepython/data_structures/tuple.py) -    - Ensemble : [Opérations sur les ensembles](ultimatepython/data_structures/set.py) -    - Dictionnaire : [Opérations sur les dictionnaires](ultimatepython/data_structures/dict.py) ( 🍰 ) - - Union de dictionnaires : [Fusion de dictionnaires | et |=](ultimatepython/data_structures/dict_union.py) ( 🤯 ) -    - Compréhension : [list | tuple | set | dict](ultimatepython/data_structures/comprehension.py) -    - Chaîne : [Opérations sur les chaînes](ultimatepython/data_structures/string.py) ( 🍰 ) -    - Deque : [deque](ultimatepython/data_structures/deque.py) ( 🤯 ) -    - Namedtuple : [namedtuple](ultimatepython/data_structures/namedtuple.py) ( 🤯 ) -    - Defaultdict : [defaultdict](ultimatepython/data_structures/defaultdict.py) ( 🤯 ) -    - Outils d'itérateurs : [Outils d'itérateurs](ultimatepython/data_structures/itertools.py) ( 🤯 ) -    - Complexité temporelle : [Opérations CPython](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) - -4. **Classes** -    - Classe basique : [Définition basique](ultimatepython/classes/basic_class.py) ( 🍰 ) -    - Héritage : [Héritage](ultimatepython/classes/inheritance.py) ( 🍰 ) -    - Classe abstraite : [Définition abstraite](ultimatepython/classes/abstract_class.py) -    - Classe d’exception : [Définition d’exception](ultimatepython/classes/exception_class.py) -    - Itérateur : [Définition d’itérateur | yield](ultimatepython/classes/iterator_class.py) ( 🤯 ) -    - Encapsulation : [Définition de l’encapsulation](ultimatepython/classes/encapsulation.py) - +2. **Fondations** + - Variable : [Littéraux intégrés](ultimatepython/fundamentals/variable.py) ( 🍰 ) + - Expression : [Opérations numériques](ultimatepython/fundamentals/expression.py) ( 🍰 ) + - Chaîne : [Opérations sur les chaînes](ultimatepython/fundamentals/string.py) ( 🍰 ) + - Liste : [Opérations sur les listes](ultimatepython/fundamentals/list.py) ( 🍰 ) + - Tuple : [Opérations sur les tuples](ultimatepython/fundamentals/tuple.py) + - Ensemble : [Opérations sur les ensembles](ultimatepython/fundamentals/set.py) + - Dictionnaire : [Opérations sur les dictionnaires](ultimatepython/fundamentals/dict.py) ( 🍰 ) + - Conditionnelle : [if | if-else | if-elif-else](ultimatepython/fundamentals/conditional.py) ( 🍰 ) + - Boucle : [for-loop | while-loop](ultimatepython/fundamentals/loop.py) ( 🍰 ) + - Fonction : [def | lambda](ultimatepython/fundamentals/function.py) ( 🍰 ) + - Compréhension : [list | tuple | set | dict](ultimatepython/fundamentals/comprehension.py) +3. **Programmation orientée objet** + - Classe basique : [Définition basique](ultimatepython/oop/basic_class.py) ( 🍰 ) + - Héritage : [Héritage](ultimatepython/oop/inheritance.py) ( 🍰 ) + - Encapsulation : [Définition de l’encapsulation](ultimatepython/oop/encapsulation.py) + - Classe abstraite : [Définition abstraite](ultimatepython/oop/abstract_class.py) + - Classe d’exception : [Définition d’exception](ultimatepython/oop/exception_class.py) + - Itérateur : [Définition d’itérateur | yield](ultimatepython/oop/iterator_class.py) ( 🤯 ) + - Mixin : [Définition de Mixin](ultimatepython/oop/mixin.py) ( 🤯 ) + - Ordre de résolution des méthodes : [mro](ultimatepython/oop/mro.py) ( 🤯 ) +4. **Bibliothèque standard** + - Gestion de fichiers : [File Handling](ultimatepython/stdlib/file_handling.py) ( 🤯 ) + - Expressions régulières : [search | findall | match | fullmatch](ultimatepython/stdlib/regex.py) ( 🤯 ) + - Format de données : [json | xml | csv](ultimatepython/stdlib/data_format.py) ( 🤯 ) + - Date et heure : [datetime | timezone](ultimatepython/stdlib/date_time.py) ( 🤯 ) 5. **Avancé** -    - Décorateur : [Définition de décorateur | wraps](ultimatepython/advanced/decorator.py) ( 🤯 ) -    - Gestion de fichiers : [File Handling](ultimatepython/advanced/file_handling.py) ( 🤯 ) -    - Gestionnaire de contexte : [Context managers](ultimatepython/advanced/context_manager.py) ( 🤯 ) -    - Ordre de résolution des méthodes : [mro](ultimatepython/advanced/mro.py) ( 🤯 ) -    - Mixin : [Définition de Mixin](ultimatepython/advanced/mixin.py) ( 🤯 ) -    - Métaclasse : [Définition de métaclasse](ultimatepython/advanced/meta_class.py) ( 🤯 ) -    - Thread : [ThreadPoolExecutor](ultimatepython/advanced/thread.py) ( 🤯 ) -    - Asyncio : [async | await](ultimatepython/advanced/async.py) ( 🤯 ) -    - Référence faible : [weakref](ultimatepython/advanced/weak_ref.py) ( 🤯 ) -    - Benchmark : [cProfile | pstats](ultimatepython/advanced/benchmark.py) ( 🤯 ) -    - Mocking : [MagicMock | PropertyMock | patch](ultimatepython/advanced/mocking.py) ( 🤯 ) -    - Expressions régulières : [search | findall | match | fullmatch](ultimatepython/advanced/regex.py) ( 🤯 ) -    - Format de données : [json | xml | csv](ultimatepython/advanced/data_format.py) ( 🤯 ) -    - Date et heure : [datetime | timezone](ultimatepython/advanced/date_time.py) ( 🤯 ) + - Décorateur : [Définition de décorateur | wraps](ultimatepython/advanced/decorator.py) ( 🤯 ) + - Gestionnaire de contexte : [Context managers](ultimatepython/advanced/context_manager.py) ( 🤯 ) + - Métaclasse : [Définition de métaclasse](ultimatepython/advanced/meta_class.py) ( 🤯 ) + - Référence faible : [weakref](ultimatepython/advanced/weak_ref.py) ( 🤯 ) + - Opérateur morse : [Expressions d'affectation :=](ultimatepython/advanced/walrus_operator.py) ( 🤯 ) + - Application d'arguments : [Positionnels uniquement / | Mots-clés uniquement *](ultimatepython/advanced/arg_enforcement.py) ( 🤯 ) - Correspondance de motifs : [match | case](ultimatepython/advanced/pattern_matching.py) ( 🤯 ) + - Template strings : [Template strings (PEP 750)](ultimatepython/advanced/template_strings.py) ( 🤯 ) +6. **Concurrence** + - Thread : [ThreadPoolExecutor](ultimatepython/concurrency/thread.py) ( 🤯 ) + - Asyncio : [async | await](ultimatepython/concurrency/async.py) ( 🤯 ) + - Sous-interpréteurs : [concurrent.interpreters](ultimatepython/concurrency/subinterpreters.py) ( 🤯 ) +7. **Ingénierie** + - Mocking : [MagicMock | PropertyMock | patch](ultimatepython/engineering/mocking.py) ( 🤯 ) + - Benchmark : [cProfile | pstats](ultimatepython/engineering/benchmark.py) ( 🤯 ) + - Opérateurs binaires : [Opérateurs binaires](ultimatepython/engineering/bitwise.py) ( 🍰 ), [Complément à un et à deux](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) + - Deque : [deque](ultimatepython/engineering/deque.py) ( 🤯 ) + - Namedtuple : [namedtuple](ultimatepython/engineering/namedtuple.py) ( 🤯 ) + - Defaultdict : [defaultdict](ultimatepython/engineering/defaultdict.py) ( 🤯 ) + - Outils d'itérateurs : [Outils d'itérateurs](ultimatepython/engineering/itertools.py) ( 🤯 ) + - Union de dictionnaires : [Fusion de dictionnaires | et |=](ultimatepython/engineering/dict_union.py) ( 🤯 ) + - Heap : [heap queue](ultimatepython/engineering/heap.py) ( 🤯 ) + - Complexité temporelle : [Opérations CPython](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) ## Ressources supplémentaires diff --git a/README.hi.md b/README.hi.md index faedefdd..012ed009 100644 --- a/README.hi.md +++ b/README.hi.md @@ -61,52 +61,56 @@ print("Ultimate Python स्टडी गाइड") - डेटा मॉडल: [डेटा मॉडल](https://docs.python.org/3/reference/datamodel.html) ( 📚, 🤯 ) - मानक पुस्तकालय: [पायथन मानक पुस्तकालय](https://docs.python.org/3/library/) ( 📚, 🤯 ) - अंतर्निहित कार्य: [अंतर्निहित कार्य](https://docs.python.org/3/library/functions.html) ( 📚 ) -2. **सिंटेक्स** - - वेरिएबल: [अंतर्निहित लिटरल](ultimatepython/syntax/variable.py) ( 🍰 ) - - अभिव्यक्ति: [संख्यात्मक ऑपरेशन्स](ultimatepython/syntax/expression.py) ( 🍰 ) - - बाइनरी: [बाइनरी ऑपरेटर](ultimatepython/syntax/bitwise.py) ( 🍰 ), [एक्स/टू का पूरक](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) - - कंडीशनल: [if | if-else | if-elif-else](ultimatepython/syntax/conditional.py) ( 🍰 ) - - लूप: [for-loop | while-loop](ultimatepython/syntax/loop.py) ( 🍰 ) - - फ़ंक्शन: [def | lambda](ultimatepython/syntax/function.py) ( 🍰 ) - - वॉलरस ऑपरेटर: [असाइनमेंट एक्सप्रेशन :=](ultimatepython/syntax/walrus_operator.py) ( 🤯 ) - - तर्क प्रवर्तन: [केवल स्थितीय / | केवल कीवर्ड *](ultimatepython/syntax/arg_enforcement.py) ( 🤯 ) -3. **डेटा संरचनाएँ** - - लिसट: [लिसट ऑपरेशन्स](ultimatepython/data_structures/list.py) ( 🍰 ) - - ट्यूपल: [ट्यूपल ऑपरेशन्स](ultimatepython/data_structures/tuple.py) - - सेट: [सेट ऑपरेशन्स](ultimatepython/data_structures/set.py) - - डिक्ट: [डिक्शनरी ऑपरेशन्स](ultimatepython/data_structures/dict.py) ( 🍰 ) - - डिक्शनरी यूनियन: [डिक्शनरी मर्ज | और |=](ultimatepython/data_structures/dict_union.py) ( 🤯 ) - - संकलन: [लिसट | ट्यूपल | सेट | डिक्ट](ultimatepython/data_structures/comprehension.py) - - स्ट्रिंग: [स्ट्रिंग ऑपरेशन्स](ultimatepython/data_structures/string.py) ( 🍰 ) - - डेक: [डेक](ultimatepython/data_structures/deque.py) ( 🤯 ) - - नामित ट्यूपल: [नामित ट्यूपल](ultimatepython/data_structures/namedtuple.py) ( 🤯 ) - - डिफ़ॉल्ट डिक्ट: [डिफ़ॉल्ट डिक्ट](ultimatepython/data_structures/defaultdict.py) ( 🤯 ) - - इटरेटर टूल्स: [इटरेटर टूल्स](ultimatepython/data_structures/itertools.py) ( 🤯 ) - - समय कोम्पलेक्सिटी: [cPython ऑपरेशन्स](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) -4. **क्लासेज़** - - बेसिक क्लास: [बेसिक परिभाषा](ultimatepython/classes/basic_class.py) ( 🍰 ) - - इन्हरिटैंस: [इन्हरिटैंस](ultimatepython/classes/inheritance.py) ( 🍰 ) - - एैबस्टराक्ट क्लास: [एैबस्टराक्ट परिभाषा](ultimatepython/classes/abstract_class.py) - - एक्सेपशन क्लास: [एक्सेपशन परिभाषा](ultimatepython/classes/exception_class.py) - - इटरेटर क्लास: [इटरेटर परिभाषा | yield](ultimatepython/classes/iterator_class.py) ( 🤯 ) - - ऐनकैपसुलेषन: [ऐनकैपसुलेषन परिभाषा](ultimatepython/classes/encapsulation.py) +2. **बुनियादी बातें** + - वेरिएबल: [अंतर्निहित लिटरल](ultimatepython/fundamentals/variable.py) ( 🍰 ) + - अभिव्यक्ति: [संख्यात्मक ऑपरेशन्स](ultimatepython/fundamentals/expression.py) ( 🍰 ) + - स्ट्रिंग: [स्ट्रिंग ऑपरेशन्स](ultimatepython/fundamentals/string.py) ( 🍰 ) + - लिसट: [लिसट ऑपरेशन्स](ultimatepython/fundamentals/list.py) ( 🍰 ) + - ट्यूपल: [ट्यूपल ऑपरेशन्स](ultimatepython/fundamentals/tuple.py) + - सेट: [सेट ऑपरेशन्स](ultimatepython/fundamentals/set.py) + - डिक्ट: [डिक्शनरी ऑपरेशन्स](ultimatepython/fundamentals/dict.py) ( 🍰 ) + - कंडीशनल: [if | if-else | if-elif-else](ultimatepython/fundamentals/conditional.py) ( 🍰 ) + - लूप: [for-loop | while-loop](ultimatepython/fundamentals/loop.py) ( 🍰 ) + - फ़ंक्शन: [def | lambda](ultimatepython/fundamentals/function.py) ( 🍰 ) + - संकलन: [लिसट | ट्यूपल | सेट | डिक्ट](ultimatepython/fundamentals/comprehension.py) +3. **ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग** + - बेसिक क्लास: [बेसिक परिभाषा](ultimatepython/oop/basic_class.py) ( 🍰 ) + - इन्हरिटैंस: [इन्हरिटैंस](ultimatepython/oop/inheritance.py) ( 🍰 ) + - एैबस्टराक्ट क्लास: [बेसिक परिभाषा](ultimatepython/oop/abstract_class.py) + - एक्सेपशन क्लास: [बेसिक परिभाषा](ultimatepython/oop/exception_class.py) + - इटरेटर क्लास: [इटरेटर परिभाषा | yield](ultimatepython/oop/iterator_class.py) ( 🤯 ) + - ऐनकैपसुलेषन: [ऐनकैपसुलेषन परिभाषा](ultimatepython/oop/encapsulation.py) + - मिक्सिन: [मिक्सिन परिभाषा](ultimatepython/oop/mixin.py) ( 🤯 ) + - मेथड रिज़ॉल्यूशन क्रम: [mro](ultimatepython/oop/mro.py) ( 🤯 ) +4. **मानक पुस्तकालय** + - फ़ाइल प्रबंधन: [फ़ाइल प्रबंधन](ultimatepython/stdlib/file_handling.py) ( 🤯 ) + - नियमित अभिव्यक्ति: [search | findall | match | fullmatch](ultimatepython/stdlib/regex.py) ( 🤯 ) + - डेटा फ़ॉर्मेट: [json | xml | csv](ultimatepython/stdlib/data_format.py) ( 🤯 ) + - दिनांक और समय: [datetime | timezone](ultimatepython/stdlib/date_time.py) ( 🤯 ) 5. **उन्नत** - डेकोरेटर: [डेकोरेटर परिभाषा | wraps](ultimatepython/advanced/decorator.py) ( 🤯 ) - - फ़ाइल प्रबंधन: [फ़ाइल प्रबंधन](ultimatepython/advanced/file_handling.py) ( 🤯 ) - संदर्भ प्रबंधक: [संदर्भ प्रबंधक](ultimatepython/advanced/context_manager.py) ( 🤯 ) - - मेथड रिज़ॉल्यूशन क्रम: [mro](ultimatepython/advanced/mro.py) ( 🤯 ) - - मिक्सिन: [मिक्सिन परिभाषा](ultimatepython/advanced/mixin.py) ( 🤯 ) - मेटाक्लास: [मेटाक्लास परिभाषा](ultimatepython/advanced/meta_class.py) ( 🤯 ) - - थ्रेड: [ThreadPoolExecutor](ultimatepython/advanced/thread.py) ( 🤯 ) - - एसिंको: [async | await](ultimatepython/advanced/async.py) ( 🤯 ) - वीक रेफरेंस: [weakref](ultimatepython/advanced/weak_ref.py) ( 🤯 ) - - बेंचमार्क: [cProfile | pstats](ultimatepython/advanced/benchmark.py) ( 🤯 ) - - मॉकिंग: [MagicMock | PropertyMock | patch](ultimatepython/advanced/mocking.py) ( 🤯 ) - - नियमित अभिव्यक्ति: [search | findall | match | fullmatch](ultimatepython/advanced/regex.py) ( 🤯 ) - - डेटा फ़ॉर्मेट: [json | xml | csv](ultimatepython/advanced/data_format.py) ( 🤯 ) - - दिनांक और समय: [datetime | timezone](ultimatepython/advanced/date_time.py) ( 🤯 ) + - वॉलरस ऑपरेटर: [असाइनमेंट एक्सप्रेशन :=](ultimatepython/advanced/walrus_operator.py) ( 🤯 ) + - तर्क प्रवर्तन: [केवल स्थितीय / | केवल कीवर्ड *](ultimatepython/advanced/arg_enforcement.py) ( 🤯 ) - पैटर्न मिलान: [match | case](ultimatepython/advanced/pattern_matching.py) ( 🤯 ) - + - Template strings: [Template strings (PEP 750)](ultimatepython/advanced/template_strings.py) ( 🤯 ) +6. **समानांतरता** + - थ्रेड: [ThreadPoolExecutor](ultimatepython/concurrency/thread.py) ( 🤯 ) + - एसिंको: [async | await](ultimatepython/concurrency/async.py) ( 🤯 ) + - सबइंटरप्रेटर: [concurrent.interpreters](ultimatepython/concurrency/subinterpreters.py) ( 🤯 ) +7. **इंजीनियरिंग** + - मॉकिंग: [MagicMock | PropertyMock | patch](ultimatepython/engineering/mocking.py) ( 🤯 ) + - बेंचमार्क: [cProfile | pstats](ultimatepython/engineering/benchmark.py) ( 🤯 ) + - बाइनरी: [बाइनरी ऑपरेटर](ultimatepython/engineering/bitwise.py) ( 🍰 ), [एक्स/टू का पूरक](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) + - डेक: [डेक](ultimatepython/engineering/deque.py) ( 🤯 ) + - नामित ट्यूपल: [नामित ट्यूपल](ultimatepython/engineering/namedtuple.py) ( 🤯 ) + - डिफ़ॉल्ट डिक्ट: [डिफ़ॉल्ट डिक्ट](ultimatepython/engineering/defaultdict.py) ( 🤯 ) + - इटरेटर टूल्स: [इटरेटर टूल्स](ultimatepython/engineering/itertools.py) ( 🤯 ) + - डिक्शनरी यूनियन: [डिक्शनरी मर्ज | और |=](ultimatepython/engineering/dict_union.py) ( 🤯 ) + - Heap: [heap queue](ultimatepython/engineering/heap.py) ( 🤯 ) + - समय कोम्पलेक्सिटी: [cPython ऑपरेशन्स](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) ## अतिरिक्त संसाधन diff --git a/README.ko.md b/README.ko.md index bc6f92dd..899efd1e 100644 --- a/README.ko.md +++ b/README.ko.md @@ -69,51 +69,56 @@ print("Ultimate Python 학습 가이드") - 데이터 모델 : [데이터 모델](https://docs.python.org/3/reference/datamodel.html) ( 📚, 🤯 ) - 표준 라이브러리 : [Python 표준 라이브러리](https://docs.python.org/3/library/) ( 📚, 🤯 ) - 내장 함수 : [내장 함수](https://docs.python.org/3/library/functions.html) ( 📚 ) -2. **통사론** - - 변수 : [내장 리터럴](ultimatepython/syntax/variable.py) ( 🍰 ) - - 표현식 : [숫자 연산](ultimatepython/syntax/expression.py) ( 🍰 ) - - 비트 연산 : [비트 연산자](ultimatepython/syntax/bitwise.py) ( 🍰 ), [1의 보수/2의 보수](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) - - 조건문 : [if | if-else | if-elif-else](ultimatepython/syntax/conditional.py) ( 🍰 ) - - 반복문 : [for-loop | while-loop](ultimatepython/syntax/loop.py) ( 🍰 ) - - 함수 : [def | lambda](ultimatepython/syntax/function.py) ( 🍰 ) - - 바다코끼리 연산자 : [할당 표현식 :=](ultimatepython/syntax/walrus_operator.py) ( 🤯 ) - - 인수 강제 : [위치 전용 / | 키워드 전용 *](ultimatepython/syntax/arg_enforcement.py) ( 🤯 ) -3. **데이터 구조** - - 리스트 : [리스트 연산](ultimatepython/data_structures/list.py) ( 🍰 ) - - 튜플 : [튜플 연산](ultimatepython/data_structures/tuple.py) - - 세트 : [세트 연산](ultimatepython/data_structures/set.py) - - 딕셔너리 : [딕셔너리 연산](ultimatepython/data_structures/dict.py) ( 🍰 ) - - 딕셔너리 합병 : [딕셔너리 병합 | 및 |=](ultimatepython/data_structures/dict_union.py) ( 🤯 ) - - 컴프리헨션 : [리스트 | 튜플 | 세트 | 딕셔너리](ultimatepython/data_structures/comprehension.py) - - 문자열 : [문자열 연산](ultimatepython/data_structures/string.py) ( 🍰 ) - - 덱: [deque](ultimatepython/data_structures/deque.py) ( 🤯 ) - - Namedtuple: [namedtuple](ultimatepython/data_structures/namedtuple.py) ( 🤯 ) - - Defaultdict: [defaultdict](ultimatepython/data_structures/defaultdict.py) ( 🤯 ) - - 이터레이터 도구: [이터레이터 도구](ultimatepython/data_structures/itertools.py) ( 🤯 ) - - 시간 복잡도 : [cPython 연산](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) -4. **클래스** - - 기본 클래스 : [기본 정의](ultimatepython/classes/basic_class.py) ( 🍰 ) - - 계승: [계승](ultimatepython/classes/inheritance.py) ( 🍰 ) - - 추상 클래스 : [추상 정의](ultimatepython/classes/abstract_class.py) - - 예외 클래스 : [예외 정의](ultimatepython/classes/exception_class.py) - - 이터레이터 클래스 : [이터레이터 정의 | yield](ultimatepython/classes/iterator_class.py) ( 🤯 ) - - 캡슐화: [캡슐화 정의](ultimatepython/classes/encapsulation.py) +2. **기초** + - 변수: [내장 리터럴](ultimatepython/fundamentals/variable.py) ( 🍰 ) + - 식: [수치 연산](ultimatepython/fundamentals/expression.py) ( 🍰 ) + - 문자열: [문자열 연산](ultimatepython/fundamentals/string.py) ( 🍰 ) + - 리스트: [리스트 연산](ultimatepython/fundamentals/list.py) ( 🍰 ) + - 튜플: [튜플 연산](ultimatepython/fundamentals/tuple.py) + - 세트: [세트 연산](ultimatepython/fundamentals/set.py) + - 딕셔너리: [딕셔너리 연산](ultimatepython/fundamentals/dict.py) ( 🍰 ) + - 조건문: [if | if-else | if-elif-else](ultimatepython/fundamentals/conditional.py) ( 🍰 ) + - 루프: [for-loop | while-loop](ultimatepython/fundamentals/loop.py) ( 🍰 ) + - 함수: [def | lambda](ultimatepython/fundamentals/function.py) ( 🍰 ) + - 컴프리헨션: [list | tuple | set | dict](ultimatepython/fundamentals/comprehension.py) +3. **객체 지향 프로그래밍** + - 기본 클래스: [기본 정의](ultimatepython/oop/basic_class.py) ( 🍰 ) + - 상속: [상속](ultimatepython/oop/inheritance.py) ( 🍰 ) + - 캡슐화: [캡슐화 정의](ultimatepython/oop/encapsulation.py) + - 추상 클래스: [추상 정의](ultimatepython/oop/abstract_class.py) + - 예외 클래스: [예외 정의](ultimatepython/oop/exception_class.py) + - 반복자 클래스: [반복자 정의 | yield](ultimatepython/oop/iterator_class.py) ( 🤯 ) + - 믹스인: [믹스인 정의](ultimatepython/oop/mixin.py) ( 🤯 ) + - 메서드 결정 순서: [mro](ultimatepython/oop/mro.py) ( 🤯 ) +4. **표준 라이브러리** + - 파일 처리: [파일 처리](ultimatepython/stdlib/file_handling.py) ( 🤯 ) + - 정규 표현식: [search | findall | match | fullmatch](ultimatepython/stdlib/regex.py) ( 🤯 ) + - 데이터 포맷: [json | xml | csv](ultimatepython/stdlib/data_format.py) ( 🤯 ) + - 날짜와 시간: [datetime | timezone](ultimatepython/stdlib/date_time.py) ( 🤯 ) 5. **고급** - - 데코레이터 : [데코레이터 정의 | wraps](ultimatepython/advanced/decorator.py) ( 🤯 ) - - 파일 처리: [파일 처리](ultimatepython/advanced/file_handling.py) ( 🤯 ) - - 컨텍스트 매니저 : [컨텍스트 매니저](ultimatepython/advanced/context_manager.py) ( 🤯 ) - - 메서드 결정 순서 : [mro](ultimatepython/advanced/mro.py) ( 🤯 ) - - 믹스인 : [믹스인 정의](ultimatepython/advanced/mixin.py) ( 🤯 ) - - 메타클래스 : [메타클래스 정의](ultimatepython/advanced/meta_class.py) ( 🤯 ) - - 스레드 : [ThreadPoolExecutor](ultimatepython/advanced/thread.py) ( 🤯 ) - - Asyncio : [async | await](ultimatepython/advanced/async.py) ( 🤯 ) - - 약한 참조 : [weakref](ultimatepython/advanced/weak_ref.py) ( 🤯 ) - - 벤치마크 : [cProfile | pstats](ultimatepython/advanced/benchmark.py) ( 🤯 ) - - 모킹 : [MagicMock | PropertyMock | patch](ultimatepython/advanced/mocking.py) ( 🤯 ) - - 정규식 : [search | findall | match | fullmatch](ultimatepython/advanced/regex.py) ( 🤯 ) - - 데이터 포맷 : [json | xml | csv](ultimatepython/advanced/data_format.py) ( 🤯 ) - - 날짜와 시간 : [datetime | timezone](ultimatepython/advanced/date_time.py) ( 🤯 ) + - 데코레이터: [데코레이터 정의 | wraps](ultimatepython/advanced/decorator.py) ( 🤯 ) + - 컨텍스트 관리자: [컨텍스트 관리자](ultimatepython/advanced/context_manager.py) ( 🤯 ) + - 메타클래스: [메타클래스 정의](ultimatepython/advanced/meta_class.py) ( 🤯 ) + - 약한 참조: [weakref](ultimatepython/advanced/weak_ref.py) ( 🤯 ) + - 바다코끼리 연산자: [할당 표현식 :=](ultimatepython/advanced/walrus_operator.py) ( 🤯 ) + - 인수 제약: [위치 전용 / | 키워드 전용 *](ultimatepython/advanced/arg_enforcement.py) ( 🤯 ) - 패턴 매칭: [match | case](ultimatepython/advanced/pattern_matching.py) ( 🤯 ) + - 템플릿 문자열: [템플릿 문자열 (PEP 750)](ultimatepython/advanced/template_strings.py) ( 🤯 ) +6. **동시성** + - 스레드: [ThreadPoolExecutor](ultimatepython/concurrency/thread.py) ( 🤯 ) + - 비동기: [async | await](ultimatepython/concurrency/async.py) ( 🤯 ) + - 서브 인터프리터: [concurrent.interpreters](ultimatepython/concurrency/subinterpreters.py) ( 🤯 ) +7. **엔지니어링** + - 모킹: [MagicMock | PropertyMock | patch](ultimatepython/engineering/mocking.py) ( 🤯 ) + - 벤치마크: [cProfile | pstats](ultimatepython/engineering/benchmark.py) ( 🤯 ) + - 비트 연산: [비트 연산자](ultimatepython/engineering/bitwise.py) ( 🍰 ), [1의 보수/2의 보수](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) + - 데크: [deque](ultimatepython/engineering/deque.py) ( 🤯 ) + - 네임드튜플: [namedtuple](ultimatepython/engineering/namedtuple.py) ( 🤯 ) + - 디폴트딕트: [defaultdict](ultimatepython/engineering/defaultdict.py) ( 🤯 ) + - 반복자 도구: [반복자 도구](ultimatepython/engineering/itertools.py) ( 🤯 ) + - 딕셔너리 결합: [딕셔너리 병합 | 와 |=](ultimatepython/engineering/dict_union.py) ( 🤯 ) + - 힙: [heap queue](ultimatepython/engineering/heap.py) ( 🤯 ) + - 시간 복잡도: [cPython 연산](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) ## 추가 자료 diff --git a/README.md b/README.md index 12fe9e35..cb1b30c7 100644 --- a/README.md +++ b/README.md @@ -81,51 +81,56 @@ There are two ways of running the modules: - Data model: [Data model](https://docs.python.org/3/reference/datamodel.html) ( 📚, 🤯 ) - Standard library: [The Python Standard Library](https://docs.python.org/3/library/) ( 📚, 🤯 ) - Built-in functions: [Built-in Functions](https://docs.python.org/3/library/functions.html) ( 📚 ) -2. **Syntax** - - Variable: [Built-in literals](ultimatepython/syntax/variable.py) ( 🍰 ) - - Expression: [Numeric operations](ultimatepython/syntax/expression.py) ( 🍰 ) - - Bitwise: [Bitwise operators](ultimatepython/syntax/bitwise.py) ( 🍰 ), [One's/Two's Complement](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) - - Conditional: [if | if-else | if-elif-else](ultimatepython/syntax/conditional.py) ( 🍰 ) - - Loop: [for-loop | while-loop](ultimatepython/syntax/loop.py) ( 🍰 ) - - Function: [def | lambda](ultimatepython/syntax/function.py) ( 🍰 ) - - Walrus operator: [Assignment expressions :=](ultimatepython/syntax/walrus_operator.py) ( 🤯 ) - - Argument enforcement: [Positional-only / | Keyword-only *](ultimatepython/syntax/arg_enforcement.py) ( 🤯 ) -3. **Data Structures** - - List: [List operations](ultimatepython/data_structures/list.py) ( 🍰 ) - - Tuple: [Tuple operations](ultimatepython/data_structures/tuple.py) - - Set: [Set operations](ultimatepython/data_structures/set.py) - - Dict: [Dictionary operations](ultimatepython/data_structures/dict.py) ( 🍰 ) - - Dict union: [Dictionary merge | and |=](ultimatepython/data_structures/dict_union.py) ( 🤯 ) - - Comprehension: [list | tuple | set | dict](ultimatepython/data_structures/comprehension.py) - - String: [String operations](ultimatepython/data_structures/string.py) ( 🍰 ) - - Deque: [deque](ultimatepython/data_structures/deque.py) ( 🤯 ) - - Namedtuple: [namedtuple](ultimatepython/data_structures/namedtuple.py) ( 🤯 ) - - Defaultdict: [defaultdict](ultimatepython/data_structures/defaultdict.py) ( 🤯 ) - - Itertools: [Iterator tools](ultimatepython/data_structures/itertools.py) ( 🤯 ) - - Time complexity: [cPython operations](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) -4. **Classes** - - Basic class: [Basic definition](ultimatepython/classes/basic_class.py) ( 🍰 ) - - Inheritance: [Inheritance](ultimatepython/classes/inheritance.py) ( 🍰 ) - - Abstract class: [Abstract definition](ultimatepython/classes/abstract_class.py) - - Exception class: [Exception definition](ultimatepython/classes/exception_class.py) - - Iterator class: [Iterator definition | yield](ultimatepython/classes/iterator_class.py) ( 🤯 ) - - Encapsulation: [Encapsulation definition](ultimatepython/classes/encapsulation.py) +2. **Fundamentals** + - Variable: [Built-in literals](ultimatepython/fundamentals/variable.py) ( 🍰 ) + - Expression: [Numeric operations](ultimatepython/fundamentals/expression.py) ( 🍰 ) + - String: [String operations](ultimatepython/fundamentals/string.py) ( 🍰 ) + - List: [List operations](ultimatepython/fundamentals/list.py) ( 🍰 ) + - Tuple: [Tuple operations](ultimatepython/fundamentals/tuple.py) + - Set: [Set operations](ultimatepython/fundamentals/set.py) + - Dict: [Dictionary operations](ultimatepython/fundamentals/dict.py) ( 🍰 ) + - Conditional: [if | if-else | if-elif-else](ultimatepython/fundamentals/conditional.py) ( 🍰 ) + - Loop: [for-loop | while-loop](ultimatepython/fundamentals/loop.py) ( 🍰 ) + - Function: [def | lambda](ultimatepython/fundamentals/function.py) ( 🍰 ) + - Comprehension: [list | tuple | set | dict](ultimatepython/fundamentals/comprehension.py) +3. **Object-Oriented Programming** + - Basic class: [Basic definition](ultimatepython/oop/basic_class.py) ( 🍰 ) + - Inheritance: [Inheritance](ultimatepython/oop/inheritance.py) ( 🍰 ) + - Encapsulation: [Encapsulation definition](ultimatepython/oop/encapsulation.py) + - Abstract class: [Abstract definition](ultimatepython/oop/abstract_class.py) + - Exception class: [Exception definition](ultimatepython/oop/exception_class.py) + - Iterator class: [Iterator definition | yield](ultimatepython/oop/iterator_class.py) ( 🤯 ) + - Mixin: [Mixin definition](ultimatepython/oop/mixin.py) ( 🤯 ) + - Method resolution order: [mro](ultimatepython/oop/mro.py) ( 🤯 ) +4. **Standard Library** + - File Handling: [File Handling](ultimatepython/stdlib/file_handling.py) ( 🤯 ) + - Regular expression: [search | findall | match | fullmatch](ultimatepython/stdlib/regex.py) ( 🤯 ) + - Data format: [json | xml | csv](ultimatepython/stdlib/data_format.py) ( 🤯 ) + - Datetime: [datetime | timezone](ultimatepython/stdlib/date_time.py) ( 🤯 ) 5. **Advanced** - Decorator: [Decorator definition | wraps](ultimatepython/advanced/decorator.py) ( 🤯 ) - - File Handling: [File Handling](ultimatepython/advanced/file_handling.py) ( 🤯 ) - Context manager: [Context managers](ultimatepython/advanced/context_manager.py) ( 🤯 ) - - Method resolution order: [mro](ultimatepython/advanced/mro.py) ( 🤯 ) - - Mixin: [Mixin definition](ultimatepython/advanced/mixin.py) ( 🤯 ) - Metaclass: [Metaclass definition](ultimatepython/advanced/meta_class.py) ( 🤯 ) - - Thread: [ThreadPoolExecutor](ultimatepython/advanced/thread.py) ( 🤯 ) - - Asyncio: [async | await](ultimatepython/advanced/async.py) ( 🤯 ) - Weak reference: [weakref](ultimatepython/advanced/weak_ref.py) ( 🤯 ) - - Benchmark: [cProfile | pstats](ultimatepython/advanced/benchmark.py) ( 🤯 ) - - Mocking: [MagicMock | PropertyMock | patch](ultimatepython/advanced/mocking.py) ( 🤯 ) - - Regular expression: [search | findall | match | fullmatch](ultimatepython/advanced/regex.py) ( 🤯 ) - - Data format: [json | xml | csv](ultimatepython/advanced/data_format.py) ( 🤯 ) - - Datetime: [datetime | timezone](ultimatepython/advanced/date_time.py) ( 🤯 ) + - Walrus operator: [Assignment expressions :=](ultimatepython/advanced/walrus_operator.py) ( 🤯 ) + - Argument enforcement: [Positional-only / | Keyword-only *](ultimatepython/advanced/arg_enforcement.py) ( 🤯 ) - Pattern matching: [match | case](ultimatepython/advanced/pattern_matching.py) ( 🤯 ) + - Template strings: [Template strings (PEP 750)](ultimatepython/advanced/template_strings.py) ( 🤯 ) +6. **Concurrency** + - Thread: [ThreadPoolExecutor](ultimatepython/concurrency/thread.py) ( 🤯 ) + - Asyncio: [async | await](ultimatepython/concurrency/async.py) ( 🤯 ) + - Subinterpreters: [concurrent.interpreters](ultimatepython/concurrency/subinterpreters.py) ( 🤯 ) +7. **Engineering** + - Mocking: [MagicMock | PropertyMock | patch](ultimatepython/engineering/mocking.py) ( 🤯 ) + - Benchmark: [cProfile | pstats](ultimatepython/engineering/benchmark.py) ( 🤯 ) + - Bitwise: [Bitwise operators](ultimatepython/engineering/bitwise.py) ( 🍰 ), [One's/Two's Complement](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) + - Deque: [deque](ultimatepython/engineering/deque.py) ( 🤯 ) + - Namedtuple: [namedtuple](ultimatepython/engineering/namedtuple.py) ( 🤯 ) + - Defaultdict: [defaultdict](ultimatepython/engineering/defaultdict.py) ( 🤯 ) + - Itertools: [Iterator tools](ultimatepython/engineering/itertools.py) ( 🤯 ) + - Dict union: [Dictionary merge | and |=](ultimatepython/engineering/dict_union.py) ( 🤯 ) + - Heap: [heap queue](ultimatepython/engineering/heap.py) ( 🤯 ) + - Time complexity: [cPython operations](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) ## Additional resources diff --git a/README.pt_br.md b/README.pt_br.md index c856f877..97d8c91a 100644 --- a/README.pt_br.md +++ b/README.pt_br.md @@ -67,51 +67,56 @@ Existem duas maneiras de rodar os módulos: - Modelo de dados: [Modelo de dados](https://docs.python.org/3/reference/datamodel.html) ( 📚, 🤯 ) - Biblioteca padrão: [A Biblioteca padrão do Python](https://docs.python.org/3/library/) ( 📚, 🤯 ) - Funções integradas: [Funções integradas](https://docs.python.org/3/library/functions.html) ( 📚 ) -2. **Sintaxe** - - Variável: [Literais integrados](ultimatepython/syntax/variable.py) ( 🍰 ) - - Expressão: [Operações numéricas](ultimatepython/syntax/expression.py) ( 🍰 ) - - Bitwise: [Operadores bitwise](ultimatepython/syntax/bitwise.py) ( 🍰 ), [Complemento de Um/Dois](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) - - Condicional: [if | if-else | if-elif-else](ultimatepython/syntax/conditional.py) ( 🍰 ) - - Loop/Laço: [for-loop | while-loop](ultimatepython/syntax/loop.py) ( 🍰 ) - - Função: [def | lambda](ultimatepython/syntax/function.py) ( 🍰 ) - - Operador morsa: [Expressões de atribuição :=](ultimatepython/syntax/walrus_operator.py) ( 🤯 ) - - Aplicação de argumentos: [Somente posicional / | Somente palavra-chave *](ultimatepython/syntax/arg_enforcement.py) ( 🤯 ) -3. **Estrutura de dados** - - Lista: [Operações de lista](ultimatepython/data_structures/list.py) ( 🍰 ) - - Tupla: [Operações de tuplas](ultimatepython/data_structures/tuple.py) - - Conjunto: [Operações de conjuntos](ultimatepython/data_structures/set.py) - - Dicionário: [Operações de dicionários](ultimatepython/data_structures/dict.py) ( 🍰 ) - - União de dicionários: [Fusão de dicionários | e |=](ultimatepython/data_structures/dict_union.py) ( 🤯 ) - - Comprehension: [list | tuple | set | dict](ultimatepython/data_structures/comprehension.py) - - String: [Operações de String](ultimatepython/data_structures/string.py) ( 🍰 ) - - Deque: [deque](ultimatepython/data_structures/deque.py) ( 🤯 ) - - Namedtuple: [namedtuple](ultimatepython/data_structures/namedtuple.py) ( 🤯 ) - - Defaultdict: [defaultdict](ultimatepython/data_structures/defaultdict.py) ( 🤯 ) - - Ferramentas de iteradores: [Ferramentas de iteradores](ultimatepython/data_structures/itertools.py) ( 🤯 ) - - Time complexity: [Operações de cPython](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) -4. **Classes** - - O básico de classes: [Definição de classe](ultimatepython/classes/basic_class.py) ( 🍰 ) - - Herança: [Herança](ultimatepython/classes/inheritance.py) ( 🍰 ) - - Classe abstrata: [Definição de classe abstrata](ultimatepython/classes/abstract_class.py) - - Classe de exceção: [Definição de Classe de exceção](ultimatepython/classes/exception_class.py) - - Classe Iterator: [Definição de classe Iterator | yield](ultimatepython/classes/iterator_class.py) ( 🤯 ) - - Encapsulamento: [Definição de encapsulamento](ultimatepython/classes/encapsulation.py) +2. **Fundamentos** + - Variável: [Literais integrados](ultimatepython/fundamentals/variable.py) ( 🍰 ) + - Expressão: [Operações numéricas](ultimatepython/fundamentals/expression.py) ( 🍰 ) + - String: [Operações de String](ultimatepython/fundamentals/string.py) ( 🍰 ) + - Lista: [Operações de lista](ultimatepython/fundamentals/list.py) ( 🍰 ) + - Tupla: [Operações de tuplas](ultimatepython/fundamentals/tuple.py) + - Conjunto: [Operações de conjuntos](ultimatepython/fundamentals/set.py) + - Dicionário: [Operações de dicionários](ultimatepython/fundamentals/dict.py) ( 🍰 ) + - Condicional: [if | if-else | if-elif-else](ultimatepython/fundamentals/conditional.py) ( 🍰 ) + - Loop/Laço: [for-loop | while-loop](ultimatepython/fundamentals/loop.py) ( 🍰 ) + - Função: [def | lambda](ultimatepython/fundamentals/function.py) ( 🍰 ) + - Comprehension: [list | tuple | set | dict](ultimatepython/fundamentals/comprehension.py) +3. **Programação orientada a objetos** + - O básico de classes: [Definição de classe](ultimatepython/oop/basic_class.py) ( 🍰 ) + - Herança: [Herança](ultimatepython/oop/inheritance.py) ( 🍰 ) + - Encapsulamento: [Definição de encapsulamento](ultimatepython/oop/encapsulation.py) + - Classe abstrata: [Definição de classe abstrata](ultimatepython/oop/abstract_class.py) + - Classe de exceção: [Definição de Classe de exceção](ultimatepython/oop/exception_class.py) + - Classe Iterator: [Definição de classe Iterator | yield](ultimatepython/oop/iterator_class.py) ( 🤯 ) + - Mixin: [Definição de mixin](ultimatepython/oop/mixin.py) ( 🤯 ) + - Ordem de resolução do método: [mro](ultimatepython/oop/mro.py) ( 🤯 ) +4. **Biblioteca padrão** + - Manuseio de arquivos: [Manuseio de arquivos](ultimatepython/stdlib/file_handling.py) ( 🤯 ) + - Expressões regulares (regexp): [search | findall | match | fullmatch](ultimatepython/stdlib/regex.py) ( 🤯 ) + - Formato de dados: [json | xml | csv](ultimatepython/stdlib/data_format.py) ( 🤯 ) + - Datetime: [datetime | timezone](ultimatepython/stdlib/date_time.py) ( 🤯 ) 5. **Avançado** - Decorator: [Definição de decorator | wraps](ultimatepython/advanced/decorator.py) ( 🤯 ) - - Manuseio de arquivos: [Manuseio de arquivos](ultimatepython/advanced/file_handling.py) ( 🤯 ) - Gerenciador de contexto: [Gerenciador de contexto](ultimatepython/advanced/context_manager.py) ( 🤯 ) - - Ordem de resolução do método: [mro](ultimatepython/advanced/mro.py) ( 🤯 ) - - Mixin: [Definição de mixin](ultimatepython/advanced/mixin.py) ( 🤯 ) - Metaclass: [Definição de metaclass](ultimatepython/advanced/meta_class.py) ( 🤯 ) - - Thread: [ThreadPoolExecutor](ultimatepython/advanced/thread.py) ( 🤯 ) - - Asyncio: [async | await](ultimatepython/advanced/async.py) ( 🤯 ) - Referência fraca: [weakref](ultimatepython/advanced/weak_ref.py) ( 🤯 ) - - Benchmark: [cProfile | pstats](ultimatepython/advanced/benchmark.py) ( 🤯 ) - - Mocking: [MagicMock | PropertyMock | patch](ultimatepython/advanced/mocking.py) ( 🤯 ) - - Expressões regulares (regexp): [search | findall | match | fullmatch](ultimatepython/advanced/regex.py) ( 🤯 ) - - Formato de dados: [json | xml | csv](ultimatepython/advanced/data_format.py) ( 🤯 ) - - Datetime: [datetime | timezone](ultimatepython/advanced/date_time.py) ( 🤯 ) + - Operador morsa: [Expressões de atribuição :=](ultimatepython/advanced/walrus_operator.py) ( 🤯 ) + - Aplicação de argumentos: [Somente posicional / | Somente palavra-chave *](ultimatepython/advanced/arg_enforcement.py) ( 🤯 ) - Correspondência de padrões: [match | case](ultimatepython/advanced/pattern_matching.py) ( 🤯 ) + - Template strings: [Template strings (PEP 750)](ultimatepython/advanced/template_strings.py) ( 🤯 ) +6. **Concorrência** + - Thread: [ThreadPoolExecutor](ultimatepython/concurrency/thread.py) ( 🤯 ) + - Asyncio: [async | await](ultimatepython/concurrency/async.py) ( 🤯 ) + - Subinterpretadores: [concurrent.interpreters](ultimatepython/concurrency/subinterpreters.py) ( 🤯 ) +7. **Engenharia** + - Mocking: [MagicMock | PropertyMock | patch](ultimatepython/engineering/mocking.py) ( 🤯 ) + - Benchmark: [cProfile | pstats](ultimatepython/engineering/benchmark.py) ( 🤯 ) + - Bitwise: [Operadores bitwise](ultimatepython/engineering/bitwise.py) ( 🍰 ), [Complemento de Um/Dois](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) + - Deque: [deque](ultimatepython/engineering/deque.py) ( 🤯 ) + - Namedtuple: [namedtuple](ultimatepython/engineering/namedtuple.py) ( 🤯 ) + - Defaultdict: [defaultdict](ultimatepython/engineering/defaultdict.py) ( 🤯 ) + - Ferramentas de iteradores: [Ferramentas de iteradores](ultimatepython/engineering/itertools.py) ( 🤯 ) + - União de dicionários: [Fusão de dicionários | e |=](ultimatepython/engineering/dict_union.py) ( 🤯 ) + - Heap: [heap queue](ultimatepython/engineering/heap.py) ( 🤯 ) + - Time complexity: [Operações de cPython](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) ## Recursos adicionais diff --git a/README.zh_tw.md b/README.zh_tw.md index afb3cb23..6f913a6a 100644 --- a/README.zh_tw.md +++ b/README.zh_tw.md @@ -64,50 +64,55 @@ print("Ultimate Python 學習大綱") - 數據模型:[數據模型](https://docs.python.org/3/reference/datamodel.html) ( 📚, 🤯 ) - 標準庫:[Python標準庫](https://docs.python.org/3/library/) ( 📚, 🤯 ) - 內置函式:[內置函式](https://docs.python.org/3/library/functions.html) ( 📚 ) -2. **語法** - - 變數:[內置值](ultimatepython/syntax/variable.py) ( 🍰 ) - - 運算式:[數值運算](ultimatepython/syntax/expression.py) ( 🍰 ) - - 按位: [中的位元運算符](ultimatepython/syntax/bitwise.py) ( 🍰 ), [一個的補語/補碼](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) - - 條件運算式:[if | if-else | if-elif-else](ultimatepython/syntax/conditional.py) ( 🍰 ) - - 迴圈:[for迴圈 | while迴圈](ultimatepython/syntax/loop.py) ( 🍰 ) - - 定義函式:[def | lambda](ultimatepython/syntax/function.py) ( 🍰 ) - - 海象運算子:[賦值表達式 :=](ultimatepython/syntax/walrus_operator.py) ( 🤯 ) - - 參數強制:[僅位置 / | 僅關鍵字 *](ultimatepython/syntax/arg_enforcement.py) ( 🤯 ) -3. **資料結構** - - 列表:[列表操作](ultimatepython/data_structures/list.py) ( 🍰 ) - - 元組:[元組操作](ultimatepython/data_structures/tuple.py) - - 集合:[集合操作](ultimatepython/data_structures/set.py) - - 字典:[字典操作](ultimatepython/data_structures/dict.py) ( 🍰 ) - - 字典聯合:[字典合併 | 和 |=](ultimatepython/data_structures/dict_union.py) ( 🤯 ) - - 綜合:[list | tuple | set | dict](ultimatepython/data_structures/comprehension.py) - - 字串:[字串操作](ultimatepython/data_structures/string.py) ( 🍰 ) - - 雙端隊列:[deque](ultimatepython/data_structures/deque.py) ( 🤯 ) - - Namedtuple: [namedtuple](ultimatepython/data_structures/namedtuple.py) ( 🤯 ) - - Defaultdict: [defaultdict](ultimatepython/data_structures/defaultdict.py) ( 🤯 ) - - 迭代器工具:[迭代器工具](ultimatepython/data_structures/itertools.py) ( 🤯 ) - - 時間複雜度:[cPython操作](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) -4. **類別** - - 基本類別:[基本定義](ultimatepython/classes/basic_class.py) ( 🍰 ) - - 抽象類別:[抽象定義](ultimatepython/classes/abstract_class.py) - - 異常類別:[異常定義](ultimatepython/classes/exception_class.py) - - 迭代類別:[迭代器定義](ultimatepython/classes/iterator_class.py) ( 🤯 ) - - 封裝: [封裝定義](ultimatepython/classes/encapsulation.py) +2. **基礎知識** + - 變數:[內置值](ultimatepython/fundamentals/variable.py) ( 🍰 ) + - 運算式:[數值運算](ultimatepython/fundamentals/expression.py) ( 🍰 ) + - 字串:[字串操作](ultimatepython/fundamentals/string.py) ( 🍰 ) + - 列表:[列表操作](ultimatepython/fundamentals/list.py) ( 🍰 ) + - 元組:[元組操作](ultimatepython/fundamentals/tuple.py) + - 集合:[集合操作](ultimatepython/fundamentals/set.py) + - 字典:[字典操作](ultimatepython/fundamentals/dict.py) ( 🍰 ) + - 條件運算式:[if | if-else | if-elif-else](ultimatepython/fundamentals/conditional.py) ( 🍰 ) + - 迴圈:[for迴圈 | while迴圈](ultimatepython/fundamentals/loop.py) ( 🍰 ) + - 定義函式:[def | lambda](ultimatepython/fundamentals/function.py) ( 🍰 ) + - 綜合:[list | tuple | set | dict](ultimatepython/fundamentals/comprehension.py) +3. **物件導向程式設計** + - 基本類別:[基本定義](ultimatepython/oop/basic_class.py) ( 🍰 ) + - 抽象類別:[抽象定義](ultimatepython/oop/abstract_class.py) + - 異常類別:[異常定義](ultimatepython/oop/exception_class.py) + - 迭代類別:[迭代器定義](ultimatepython/oop/iterator_class.py) ( 🤯 ) + - 封裝: [封裝定義](ultimatepython/oop/encapsulation.py) + - Mixin:[Mixin定義](ultimatepython/oop/mixin.py) ( 🤯 ) + - 方法解析順序:[mro](ultimatepython/oop/mro.py) ( 🤯 ) +4. **標準函式庫** + - 文件處理: [File Handling](ultimatepython/stdlib/file_handling.py) ( 🤯 ) + - 正規表示式:[search | findall | match | fullmatch](ultimatepython/stdlib/regex.py) ( 🤯 ) + - 數據格式:[json | xml | csv](ultimatepython/stdlib/data_format.py) ( 🤯 ) + - 日期時間: [datetime | timezone](ultimatepython/stdlib/date_time.py) ( 🤯 ) 5. **進階技巧** - 裝飾器:[Decorator definition | wraps](ultimatepython/advanced/decorator.py) ( 🤯 ) - - 文件處理: [File Handling](ultimatepython/advanced/file_handling.py) ( 🤯 ) - 資源管理器:[Context managers](ultimatepython/advanced/context_manager.py) ( 🤯 ) - - 方法解析順序:[mro](ultimatepython/advanced/mro.py) ( 🤯 ) - - Mixin:[Mixin定義](ultimatepython/advanced/mixin.py) ( 🤯 ) - 元類:[Metaclass定義](ultimatepython/advanced/meta_class.py) ( 🤯 ) - - 執行緒:[ThreadPoolExecutor](ultimatepython/advanced/thread.py) ( 🤯 ) - - 異步:[async | await](ultimatepython/advanced/async.py) ( 🤯 ) - 弱引用:[weakref](ultimatepython/advanced/weak_ref.py) ( 🤯 ) - - 基準:[cProfile | pstats](ultimatepython/advanced/benchmark.py) ( 🤯 ) - - 模擬:[MagicMock | PropertyMock | patch](ultimatepython/advanced/mocking.py) ( 🤯 ) - - 正規表示式:[search | findall | match | fullmatch](ultimatepython/advanced/regex.py) ( 🤯 ) - - 數據格式:[json | xml | csv](ultimatepython/advanced/data_format.py) ( 🤯 ) - - 日期時間: [datetime | timezone](ultimatepython/advanced/date_time.py) ( 🤯 ) + - 海象運算子:[賦值表達式 :=](ultimatepython/advanced/walrus_operator.py) ( 🤯 ) + - 參數強制:[僅位置 / | 僅關鍵字 *](ultimatepython/advanced/arg_enforcement.py) ( 🤯 ) - 模式匹配:[match | case](ultimatepython/advanced/pattern_matching.py) ( 🤯 ) + - 模板字串:[Template strings (PEP 750)](ultimatepython/advanced/template_strings.py) ( 🤯 ) +6. **併發** + - 執行緒:[ThreadPoolExecutor](ultimatepython/concurrency/thread.py) ( 🤯 ) + - 異步:[async | await](ultimatepython/concurrency/async.py) ( 🤯 ) + - 子解釋器:[concurrent.interpreters](ultimatepython/concurrency/subinterpreters.py) ( 🤯 ) +7. **工程實踐** + - 模擬:[MagicMock | PropertyMock | patch](ultimatepython/engineering/mocking.py) ( 🤯 ) + - 基準:[cProfile | pstats](ultimatepython/engineering/benchmark.py) ( 🤯 ) + - 按位: [中的位元運算符](ultimatepython/engineering/bitwise.py) ( 🍰 ), [一個的補語/補碼](https://www.geeksforgeeks.org/difference-between-1s-complement-representation-and-2s-complement-representation-technique/) ( 📚 ) + - 雙端隊列:[deque](ultimatepython/engineering/deque.py) ( 🤯 ) + - Namedtuple: [namedtuple](ultimatepython/engineering/namedtuple.py) ( 🤯 ) + - Defaultdict: [defaultdict](ultimatepython/engineering/defaultdict.py) ( 🤯 ) + - 迭代器工具:[迭代器工具](ultimatepython/engineering/itertools.py) ( 🤯 ) + - 字典聯合:[字典合併 | 和 |=](ultimatepython/engineering/dict_union.py) ( 🤯 ) + - 堆積: [heap queue](ultimatepython/engineering/heap.py) ( 🤯 ) + - 時間複雜度:[cPython操作](https://wiki.python.org/moin/TimeComplexity) ( 📚, 🤯 ) ## 額外資源 diff --git a/ui/parse_lessons.py b/ui/parse_lessons.py index 9a60c313..02d99479 100644 --- a/ui/parse_lessons.py +++ b/ui/parse_lessons.py @@ -2,9 +2,16 @@ import json import os -CATEGORY_MAP = {"syntax": "Syntax", "data_structures": "Data Structures", "classes": "Classes", "advanced": "Advanced"} +CATEGORY_MAP = { + "fundamentals": "Fundamentals", + "oop": "OOP", + "stdlib": "Standard Library", + "advanced": "Advanced", + "concurrency": "Concurrency", + "engineering": "Engineering", +} -CATEGORY_ORDER = ["syntax", "data_structures", "classes", "advanced"] +CATEGORY_ORDER = ["fundamentals", "oop", "stdlib", "advanced", "concurrency", "engineering"] def humanize_name(name: str) -> str: @@ -54,56 +61,60 @@ def parse_file(filepath: str, relative_path: str) -> dict: LESSON_ORDER = { - "syntax": [ + "fundamentals": [ "variable", - "template_strings", "expression", - "bitwise", - "conditional", - "loop", - "function", - "walrus_operator", - "arg_enforcement", - ], - "data_structures": [ + "string", "list", "tuple", "set", "dict", - "dict_union", + "conditional", + "loop", + "function", "comprehension", - "string", - "deque", - "namedtuple", - "defaultdict", - "heap", - "itertools", ], - "classes": [ + "oop": [ "basic_class", "inheritance", + "encapsulation", "abstract_class", "exception_class", "iterator_class", - "encapsulation", + "mixin", + "mro", + ], + "stdlib": [ + "file_handling", + "regex", + "data_format", + "date_time", ], "advanced": [ "decorator", - "file_handling", "context_manager", - "mro", - "mixin", "meta_class", + "weak_ref", + "walrus_operator", + "arg_enforcement", + "pattern_matching", + "template_strings", + ], + "concurrency": [ "thread", - "subinterpreters", "async", - "weak_ref", - "benchmark", + "subinterpreters", + ], + "engineering": [ "mocking", - "regex", - "data_format", - "date_time", - "pattern_matching", + "benchmark", + "bitwise", + "deque", + "namedtuple", + "defaultdict", + "itertools", + "dict_union", + "heap", ], } diff --git a/ui/src/components/Sidebar.astro b/ui/src/components/Sidebar.astro index 63f6f176..ddfd80f4 100644 --- a/ui/src/components/Sidebar.astro +++ b/ui/src/components/Sidebar.astro @@ -28,7 +28,7 @@ const categoriesMap = lessons.reduce((acc, lesson) => { return acc; }, {} as Record); -const categoryOrder = ["syntax", "data_structures", "classes", "advanced"]; +const categoryOrder = ["fundamentals", "oop", "stdlib", "advanced", "concurrency", "engineering"]; ---