def create(self): os.system("cls") code = input(f"请输入前序遍历表示的二叉树(可使用'{BinaryTree.VOID_NODE_PLACEHOLDER}'表示空节点):") self.binary_tree = BinaryTree.create(code) flash_message("构建完成...")