How to define an interface in Python?
Explanation
There is no interface of abstract class keyword in Python. Actually there is no notion of interface per se in Python (as opposed to Java, for example). Python uses abstract classes to declare interfaces. Abstract class can be defined in a following manner: from abc import ABC

class AbstractOperation(ABC):

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Продолжайте изучать
тесты по Python
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты