📅  最后修改于: 2022-03-11 14:55:21.089000             🧑  作者: Mango
def find(node: Node, key: str) -> Optional[Any]:
"""Find value by key in node."""
for char in key:
if char in node.children:
node = node.children[char]
else:
return None
return node.value