📜  尝试查找伪代码 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:21.089000             🧑  作者: Mango

代码示例1
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