[Tutor] about tree input

Zachary Ware zachary.ware+pytut at gmail.com
Mon Apr 23 17:50:21 EDT 2018


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


More information about the Tutor mailing list