On Mon, Apr 23, 2018 at 11:28 AM, 劉權陞 <01patrick...@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 _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor