Skip to content

Commit

Permalink
Update python_base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
0xkookoo authored Oct 18, 2017
1 parent 0c8625b commit e5499ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit e5499ec

Please sign in to comment.