Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
class Foo:
    field = []

a = Foo()
a.field.append(1)

print(a.field)  # [1]

b = Foo()

print(b.field)  # [1]