Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок+ 2
What is the difference classmethod and staticmethod?
2 ответов
+ 2
Class Method:
Takes reference to class (cls) instead of an instance (self)
Static Method:
You call it like a normal function ClassName.StaticMethod() without instantciating