Add a STATIC variable to a Python class 🐍 #shorts

preview_player
Показать описание
Any variable defined inside the body of the class but outside a function definition is a static method.
class Circle:
pi = 3.14

Рекомендации по теме