commit
491e32420c
|
@ -285,7 +285,7 @@
|
|||
def __missing__(self, key):
|
||||
self[key] = []
|
||||
return self[key]
|
||||
dct = Dict()
|
||||
dct = dict()
|
||||
dct["foo"].append(1) # 这有点类似于collections.defalutdict
|
||||
dct["foo"] # [1]
|
||||
|
||||
|
|
Loading…
Reference in New Issue