Merge pull request #25 from Lisanaaa/patch-1

Update python_base.py
master
xianhu 2017-10-18 02:16:29 -05:00 committed by GitHub
commit 491e32420c
1 changed files with 1 additions and 1 deletions

View File

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