Python3: Nested defaultdict
https://stackoverflow.com/questions/2600790/multiple-levels-of-collection-defaultdict-in-python
code: py
from collections import defaultdict
data = defaultdict(lambda : defaultdict(int))
# できる
data'aa''bb' += 1
code: dict
{
'aa': {
'bb': 1
}
}