09.10.24

Egor Vorobey - Oct 9 - - Dev Community

Весь день потратил на программирование и итого чистого учебного процесса вышло 6ч

чему я научился:

  1. Basic Functions:

.join(), len(), and set() for string manipulation, measuring length, and creating unique collections.
Object-Oriented Programming (OOP):

  1. Class Variables: Shared among all instances of a class.
    Inheritance: Single, multiple, and multilevel inheritance for reusing code.
    super(): Accessing methods from parent classes.
    Polymorphism and Duck Typing:

  2. Using objects interchangeably if they have required methods, without needing to be the same type.
    Abstract Classes:

  3. Using @abstractmethod for creating methods that must be implemented in subclasses.
    Static and Class Methods:

  4. Static Methods: Utility methods that don’t rely on class data.
    Class Methods: Operate on the class itself, not instances.
    Magic Methods:

  5. Customizing behavior with methods like init, str, and add for object interactions.
    Decorators:

  6. @property: Creating getter, setter, and deleter methods.
    Exception Handling:

  7. Using try, except, and finally to manage errors.
    File Operations:

  8. Detecting files with os.path and performing read/write operations.
    These topics form a solid foundation in Python, especially in OOP and handling errors and files efficiently.

. . . . . . . . .
Terabox Video Player