diff --git a/build.md b/build.md index 38c72f6e9b26cc71903482244533e283c49e176b..ae9e8c8456a9fd0fcfc2ac3ef128a4be683c707b 100644 --- a/build.md +++ b/build.md @@ -40,7 +40,15 @@ if __name__ == '__main__': ├── main.py └── requirements.txt ``` -6. 阅读 `README.md` -7. 提交项目到git仓库: `git add .` + `git commit -m "init"` + `git push` -8. 到技能森林仓库的「技能树孵化器」问题里,提交你的项目地址。https://gitcode.net/csdn/skill_tree/-/issues/17 -9. 找到你的伙伴,持续按照 README 的介绍持续构建技能树,构建足够好后,在技能森林仓库提交一个申请上线的 issue。https://gitcode.net/csdn/skill_tree/-/issues \ No newline at end of file +6.现在,请修改`main.py`,将初始化代码改为构建索引的模式: + ```python +from skill_tree.tree import TreeWalker + +if __name__ == '__main__': + walker = TreeWalker("data", "test", "Test", ignore_keywords=True) + walker.walk() # 构建索引模式 +``` +7. 阅读 `README.md` +8. 提交项目到git仓库: `git add .` + `git commit -m "init"` + `git push` +9. 到技能森林仓库的「技能树孵化器」问题里,提交你的项目地址。https://gitcode.net/csdn/skill_tree/-/issues/17 +10. 找到你的伙伴,持续按照 README 的介绍持续构建技能树,构建足够好后,在技能森林仓库提交一个申请上线的 issue。https://gitcode.net/csdn/skill_tree/-/issues \ No newline at end of file