On Mon, Apr 23, 2018 at 11:28 AM, 劉權陞 <01patrickliu at gmail.com> wrote: > I still have no idea about how to write the code. Can you make a > demonstration? Something like this: def set(tree, path, key, value): for p in path: tree = tree[p] tree[key] = value -- Zach