VA
Size: a a a
VA
E
IT
E
E
IT
VB
class Counter():как сделать так, что бы выводилось 1, 2, 3 ?
counter = 0
class Tmp(Counter):
def __init__(self):
self.counter +=1
print(Tmp().counter)
print(Tmp().counter)
print(Tmp().counter)
VB
VB
E
class Counter():как сделать так, что бы выводилось 1, 2, 3 ?
counter = 0
class Tmp(Counter):
def __init__(self):
self.counter +=1
print(Tmp().counter)
print(Tmp().counter)
print(Tmp().counter)
Р
Р
Р
Р
a
VA
a
IT
IT