Dunder Methods
摘要
In the previous chapter, we explored the concept of classes and object-oriented programming in Python. To customize the behavior of objects, Python provides special methods known as dunder methods. They get their name from the double underscores at the beginning and end of the name. These methods are called implicitly by Python to handle various operations. For example, the __init__ dunder method is called automatically when an object is created to initialize it.