Update python_base.py

master
KEQI HUANG 2017-10-17 23:53:19 -05:00 committed by GitHub
parent 0c8625b409
commit e5499ec9f9
1 changed files with 1 additions and 1 deletions

View File

@ -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]