diff options
Diffstat (limited to 'test.py')
| -rw-r--r-- | test.py | 15 |
1 files changed, 15 insertions, 0 deletions
| @@ -0,0 +1,15 @@ | |||
| 1 | class A: | ||
| 2 | def __init__(self, b: dict = {}) -> None: | ||
| 3 | self.b = b | ||
| 4 | |||
| 5 | |||
| 6 | a1 = A() | ||
| 7 | a2 = A() | ||
| 8 | |||
| 9 | print(a1.b) | ||
| 10 | print(a2.b) | ||
| 11 | |||
| 12 | a1.b["test"] = 123 | ||
| 13 | |||
| 14 | print(a1.b) | ||
| 15 | print(a2.b) | ||
