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