Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite+ 2
What is the difference classmethod and staticmethod?
2 Réponses
+ 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