- Exécuteurs
-
Apprendre
Apprendre Python Exemples exécutables, NumPy, pandas et plus Apprendre l'IARéseaux de neurones, ML et LLM de zéro Apprendre le C et le C++ Pointeurs, mémoire, STL et C++ moderne Apprendre le C#Bases, POO, LINQ, async et exercices .NET Algorithmes Python Recherche, tri, récursivité et visualisations O(n) Algorithmes C et C++ Comparer les implémentations en C et C++
- DéfisNouveau
POO et design patterns en Python
Classes et objets, puis les patrons de création, de structure et de comportement utilisés dans du vrai code Python.
Commencer le parcours →1 Classes et objets 2 leçons
- Leçon 1 défi Classes et objets en Python Définir un type avec état et comportement.
- Leçon 1 défi Programmation orientée objet en Python Apprenez encapsulation, héritage, redéfinition et polymorphisme avec un exemple exécutable.
2 Patrons de création 3 leçons
- Leçon 1 défi Singleton Pattern in Python Ensure a class has one shared instance and provide a global access point.
- Leçon 1 défi Factory Method Pattern in Python Let subclasses or a factory method choose which concrete object to create.
- Leçon 1 défi Builder Pattern in Python Construct a complex object through clear, incremental steps.
3 Patrons de structure 4 leçons
- Leçon 1 défi Adapter Pattern in Python Convert an existing interface into the interface a client expects.
- Leçon 1 défi Decorator Pattern in Python Add behavior to an object dynamically without changing its class.
- Leçon 1 défi Facade Pattern in Python Provide one simple interface to a complex subsystem.
- Leçon 1 défi Composite Pattern in Python Treat individual objects and object groups through the same interface.
4 Patrons de comportement 5 leçons
- Leçon 1 défi Observer Pattern in Python Notify subscribed objects automatically when subject state changes.
- Leçon 1 défi Strategy Pattern in Python Select an interchangeable algorithm at runtime.
- Leçon 1 défi Command Pattern in Python Represent a request as an object that can be queued, logged, or undone.
- Leçon 1 défi State Pattern in Python Change an object's behavior when its internal state changes.
- Leçon 1 défi Iterator Pattern in Python Traverse a collection without exposing its internal representation.