Comment faire une variable statique dans Python
# static variable in this example is counter
class Employee:
counter = 0
def __init__(self, age, name , department , is_manager):
self.name = name
self.age = age
self .department = department
self.is_manager = is_manager
Employee.counter += 1
Long Lyrebird