SelfCount/karry99 | SelfCount/Aleksyav | ||||
---|---|---|---|---|---|
t | 1 | #!/usr/bin/env python | t | ||
2 | # coding: utf-8 | ||||
3 | |||||
4 | # In[1]: | ||||
5 | |||||
6 | |||||
7 | class WeAre: | 1 | class WeAre: | ||
8 | count = 0 | 2 | count = 0 | ||
9 | 3 | ||||
10 | def __init__(self): | 4 | def __init__(self): | ||
11 | WeAre.count += 1 | 5 | WeAre.count += 1 | ||
12 | 6 | ||||
13 | def __del__(self): | 7 | def __del__(self): | ||
14 | WeAre.count -= 1 | 8 | WeAre.count -= 1 | ||
15 | 9 |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|