super()
lets you avoid referring to the base class explicitly, which can be nice. But the main advantage comes with multiple inheritance, where all sorts of fun stuff can happen. Note that the syntax changed in Python 3.0: you can just say super().__init__()
instead of super(ChildB, self).__init__()
which IMO is quite a bit nicer.
Αναζήτηση
Chart
Κατηγορίες
- Arts
- Business
- Computers
- Παιχνίδια
- Health
- Κεντρική Σελίδα
- Kids and Teens
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Διαβάζω περισσότερα
Goodfellas. (1990)
The story of Henry Hill and his life in the mob, covering his relationship with his wife Karen...
The Dark Knight. (2008)
When the menace known as the Joker wreaks havoc and chaos on the people of Gotham, Batman must...
Python Fun Fact
There's a fact about Python that you might not know! Python has a module called "this". The...
Mean Girls. (2004)
Cady Heron is a hit with The Plastics, the A-list girl clique at her new school, until she makes...
FOX 4, Live TV Dallas-Fort Worth USA
Dallas news, weather, sports and traffic from KDFW FOX 4, serving Dallas-Fort Worth, North Texas...