What's the meaning of
def tree():
return defaultdict(tree)
t = tree()
How can I do it without function?
t = defaultdict()
It's not the same.
What's the meaning of
def tree():
return defaultdict(tree)
t = tree()
How can I do it without function?
t = defaultdict()
It's not the same.