diff --git a/python_base.py b/python_base.py index 9b5e605..9fab081 100644 --- a/python_base.py +++ b/python_base.py @@ -285,7 +285,7 @@ class Dict(dict): def __missing__(self, key): self[key] = [] return self[key] - dct = dict() + dct = Dict() dct["foo"].append(1) # 这有点类似于collections.defalutdict dct["foo"] # [1]