From 70fa67de68c4dfa568627faae71d413f750fa299 Mon Sep 17 00:00:00 2001 From: Da Huo Date: Sun, 24 Nov 2019 20:55:23 +0800 Subject: [PATCH] Fix a little bug with Dict in python_base.py --- python_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]