diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..cb7465f8291685dea5dab6d68ce5f188529e873a --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +.vscode +.idea +.DS_Store +__pycache__ +*.pyc +*.zip +*.out +bin/ +debug/ +release/ \ No newline at end of file diff --git a/README.md b/README.md index 30bda9fcd94b48c28f5f5a0a4e356d41df3bd49a..723456d018689712ddc38896ce2ae3406749b861 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,152 @@ -# skill_tree_python_4_beginners +# skill_tree_python_4_beginnners -Python 新手村 技能树 \ No newline at end of file +`Python新手村技能树`是[技能森林](https://gitcode.net/csdn/skill_tree)的一部分。 + +## 编辑环境初始化 + +``` +pip install -r requirements.txt +``` + +## 目录结构说明 +技能树编辑仓库的 data 目录是主要的编辑目录,目录的结构是固定的 + +* 技能树`骨架文件`: + * 位置:`data/tree.json` + * 说明:该文件是执行 `python main.py` 生成的,请勿人工编辑 +* 技能树`根节点`配置文件: + * 位置:`data/config.json` + * 说明:可编辑配置关键词等字段,其中 `node_id` 字段是生成的,请勿编辑 +* 技能树`难度节点`: + * 位置:`data/xxx`,例如: `data/1.Python新手村初阶` + * 说明: + * 每个技能树有 3 个等级,目录前的序号是必要的,用来保持文件夹目录的顺序 + * 每个目录下有一个 `config.json` 可配置关键词信息,其中 `node_id` 字段是生成的,请勿编辑 +* 技能树`章节点`: + * 位置:`data/xxx/xxx`,例如:`data/1.Python新手村初阶/1.Python新手村简介` + * 说明: + * 每个技能树的每个难度等级有 n 个章节,目录前的序号是必要的,用来保持文件夹目录的顺序 + * 每个目录下有一个 `config.json` 可配置关键词信息,其中 `node_id` 字段是生成的,请勿编辑 +* 技能树`知识节点`: + * 位置:`data/xxx/xxx`,例如:`data/1.Python新手村初阶/1.Python新手村简介` + * 说明: + * 每个技能树的每章有 n 个知识节点,目录前的序号是必要的,用来保持文件夹目录的顺序 + * 每个目录下有一个 `config.json` + * 其中 `node_id` 字段是生成的,请勿编辑 + * 其中 `keywords` 可配置关键字字段 + * 其中 `children` 可配置该`知识节点`下的子树结构信息,参考后面描述 + * 其中 `export` 可配置该`知识节点`下的导出习题信息,参考后面描述 + +## `知识节点` 子树信息结构 + +例如 `data/1.Python新手村初阶/1.Python新手村简介/1.HelloWorld/config.json` 里配置对该知识节点子树信息结构,这个配置是可选的: +```json +{ + // ... + + "children": [ + { + "XX开发入门": { + "keywords": [ + "XX开发", + ], + "children": [], + "keywords_must": [ + "XX" + ], + "keywords_forbid": [] + } + } + ], +} +``` + +## `知识节点` 的导出习题编辑 + +例如 `data/1.Python新手村初阶/1.Python新手村简介/1.HelloWorld/config.json` 里配置对该知识节点导出的习题 + +```json +{ + // ... + "export": [ + "helloworld.json" + ] +} +``` + +helloworld.json 的格式如下: +```bash +{ + "type": "code_options", + "author": "xxx", + "source": "helloworld.md", + "notebook_enable": false, + "exercise_id": "xxx" +} +``` + +其中 +* "type": "code_options" 表示是一个选择题 +* "author" 可以放作者的 CSDN id, +* "source" 指向了习题 MarkDown文件 +* "notebook_enable" 目前都是false +* "exercise_id" 是工具生成的,不填 + + +习题格式模版如下: + +````mardown +# {标题} + +{习题描述} + +以下关于上述游戏代码说法[正确/错误]的是? + +## 答案 + +{目标选项} + +## 选项 + +### A + +{混淆选项1} + +### B + +{混淆选项2} + +### C + +{混淆选项3} + +```` + +## 技能树合成 + +在根目录下执行 `python main.py` 会合成技能树文件,合成的技能树文件: `data/tree.json` +* 合成过程中,会自动检查每个目录下 `config.json` 里的 `node_id` 是否存在,不存在则生成 +* 合成过程中,会自动检查每个知识点目录下 `config.json` 里的 `export` 里导出的习题配置,检查是否存在`exercise_id` 字段,如果不存在则生成 +* 在 节 目录下根据需要,可以添加一些子目录用来测试代码。 +* 开始游戏入门技能树构建之旅,GoodLuck! + +## FAQ + +**难度目录是固定的么?** + +1. data/xxx 目录下的子目录是固定的初/中/高三个难度等级目录 + +**如何增加章目录?** + +1. 在VSCode里打开项目仓库 +2. 在对应的难度等级目录新建章目录,例如在 data/1.xxx初阶/ 下新建章文件夹,data/1.xxx初阶/1.yyy +3. 在项目根目录下执行 python main.py 脚本,会自动生成章的配置文件 data/1.xxx初阶/1.yyy/config.json + +**如何增加节目录?**: +1. 直接在VSCode里创建文件夹,例如 "data/1.xxx初阶/1.yyy/2.zzz" +2. 项目根目录下执行 python main.py 会自动为新增节创建配置文件 data/1.xxx初阶/1.yyy/2.zzz/config.json + +**如何在节下新增一个习题**: +3. 在"data/1.xxx初阶/1.yyy/2.zzz" 目录下添加一个 markdown 文件编辑,例如 yyy.md,按照习题markdown格式编辑习题。 +4. md编辑完后,可以再次执行 python main.py 会自动生成同名的 yyy.json,并将 yyy.json 添加到config.json 的export数组里。 +5. yyy.json里的author信息放作者 CSDN ID。 \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/1.\346\265\201\346\265\252\345\234\260\347\220\203/1.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/1.\346\265\201\346\265\252\345\234\260\347\220\203/1.json" new file mode 100644 index 0000000000000000000000000000000000000000..993ba4cc3cb39739e9b032dcc1ef7e3cb82178ed --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/1.\346\265\201\346\265\252\345\234\260\347\220\203/1.json" @@ -0,0 +1,9 @@ +{ + "type": "inscode_project", + "author": null, + "source": "1.md", + "notebook_enable": false, + "exercise_id": "b2203860e62846f4a6a7a09a94957709", + "project": "https://gitcode.net/csdn/inscode_project/python_word_replacement", + "desc": "实现一个替换文本中某些单词的Python小项目\n# 项目地址" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/1.\346\265\201\346\265\252\345\234\260\347\220\203/1.md" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/1.\346\265\201\346\265\252\345\234\260\347\220\203/1.md" new file mode 100644 index 0000000000000000000000000000000000000000..93a9ef584d92c448470574d07ec499c4e7051e39 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/1.\346\265\201\346\265\252\345\234\260\347\220\203/1.md" @@ -0,0 +1,7 @@ +# 项目说明 + +实现一个替换文本中某些单词的Python小项目 + +# 项目地址 + + diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/1.\346\265\201\346\265\252\345\234\260\347\220\203/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/1.\346\265\201\346\265\252\345\234\260\347\220\203/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..4244e1374e2c0fb60b649219a3ed8a77dd9c5219 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/1.\346\265\201\346\265\252\345\234\260\347\220\203/config.json" @@ -0,0 +1,12 @@ +{ + "node_id": "python_4_beginnners-006e3436e5934d64bb751a2326b3ea33", + "keywords": [], + "children": [], + "export": [ + "1.json" + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/2.\345\210\244\346\226\255\346\230\257\345\220\246\351\227\260\345\271\264/1.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/2.\345\210\244\346\226\255\346\230\257\345\220\246\351\227\260\345\271\264/1.json" new file mode 100644 index 0000000000000000000000000000000000000000..88626a349f820f8052adce907668c47c14dbd627 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/2.\345\210\244\346\226\255\346\230\257\345\220\246\351\227\260\345\271\264/1.json" @@ -0,0 +1,9 @@ +{ + "type": "inscode_project", + "author": null, + "source": "1.md", + "notebook_enable": false, + "exercise_id": "870b8f9cf75e47b59a2b9831d9207098", + "project": "https://gitcode.net/csdn/inscode_project/python_is_leap_year", + "desc": "实现一个判断年份是否为闰年的Python小项目\n# 项目地址" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/2.\345\210\244\346\226\255\346\230\257\345\220\246\351\227\260\345\271\264/1.md" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/2.\345\210\244\346\226\255\346\230\257\345\220\246\351\227\260\345\271\264/1.md" new file mode 100644 index 0000000000000000000000000000000000000000..7aedfd623642674d737b6e0bdbdc6cc2a3b8c129 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/2.\345\210\244\346\226\255\346\230\257\345\220\246\351\227\260\345\271\264/1.md" @@ -0,0 +1,7 @@ +# 项目说明 + +实现一个判断年份是否为闰年的Python小项目 + +# 项目地址 + + diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/2.\345\210\244\346\226\255\346\230\257\345\220\246\351\227\260\345\271\264/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/2.\345\210\244\346\226\255\346\230\257\345\220\246\351\227\260\345\271\264/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..82f6f74b8f0066dd0eefd3d876e3df25228ae081 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/2.\345\210\244\346\226\255\346\230\257\345\220\246\351\227\260\345\271\264/config.json" @@ -0,0 +1,12 @@ +{ + "node_id": "python_4_beginnners-0904efe56f8a40bdb50fc87fcc5c4681", + "keywords": [], + "children": [], + "export": [ + "1.json" + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/3.\344\270\226\347\225\214\345\234\260\347\220\206\347\255\224\351\242\230\346\270\270\346\210\217/1.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/3.\344\270\226\347\225\214\345\234\260\347\220\206\347\255\224\351\242\230\346\270\270\346\210\217/1.json" new file mode 100644 index 0000000000000000000000000000000000000000..676095cc586a4b89a6f23fe05c6ec682645fc1da --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/3.\344\270\226\347\225\214\345\234\260\347\220\206\347\255\224\351\242\230\346\270\270\346\210\217/1.json" @@ -0,0 +1,9 @@ +{ + "type": "inscode_project", + "author": null, + "source": "1.md", + "notebook_enable": false, + "exercise_id": "5c14023ab0f14e839189b1409d5439c4", + "project": "https://gitcode.net/csdn/inscode_project/python_quiz_program", + "desc": "实现一个世界各国首都的答题Python小项目\n# 项目地址" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/3.\344\270\226\347\225\214\345\234\260\347\220\206\347\255\224\351\242\230\346\270\270\346\210\217/1.md" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/3.\344\270\226\347\225\214\345\234\260\347\220\206\347\255\224\351\242\230\346\270\270\346\210\217/1.md" new file mode 100644 index 0000000000000000000000000000000000000000..815923df896a8ed6c2988597ea75b26b05c474a0 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/3.\344\270\226\347\225\214\345\234\260\347\220\206\347\255\224\351\242\230\346\270\270\346\210\217/1.md" @@ -0,0 +1,7 @@ +# 项目说明 + +实现一个世界各国首都的答题Python小项目 + +# 项目地址 + + diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/3.\344\270\226\347\225\214\345\234\260\347\220\206\347\255\224\351\242\230\346\270\270\346\210\217/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/3.\344\270\226\347\225\214\345\234\260\347\220\206\347\255\224\351\242\230\346\270\270\346\210\217/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..427198700cd5cfea38dd8cbdb20ed5d8c6055838 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/3.\344\270\226\347\225\214\345\234\260\347\220\206\347\255\224\351\242\230\346\270\270\346\210\217/config.json" @@ -0,0 +1,12 @@ +{ + "node_id": "python_4_beginnners-d6282042d71b4eed83018bae62c8a85b", + "keywords": [], + "children": [], + "export": [ + "1.json" + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..72cee8a7e3372d86a5f175a3aaa2691f0784b1fe --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/1.\345\260\217\344\275\223\351\252\214/config.json" @@ -0,0 +1,8 @@ +{ + "node_id": "python_4_beginnners-c42898e17bdb4d6e9dabf83994bc5070", + "keywords": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/1.\347\275\221\347\253\231\350\277\236\346\216\245\346\243\200\346\265\213/1.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/1.\347\275\221\347\253\231\350\277\236\346\216\245\346\243\200\346\265\213/1.json" new file mode 100644 index 0000000000000000000000000000000000000000..b5e54bce9e9b6bb6062ac5c4fc66d0c9d6e1f4b7 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/1.\347\275\221\347\253\231\350\277\236\346\216\245\346\243\200\346\265\213/1.json" @@ -0,0 +1,9 @@ +{ + "type": "inscode_project", + "author": null, + "source": "1.md", + "notebook_enable": false, + "exercise_id": "776d39efab06446d9e1cea2f03935f3c", + "project": "https://gitcode.net/csdn/inscode_project/python_site_connectivity_checker", + "desc": "实现一个检测网站是否可连接的Python小项目\n# 项目地址" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/1.\347\275\221\347\253\231\350\277\236\346\216\245\346\243\200\346\265\213/1.md" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/1.\347\275\221\347\253\231\350\277\236\346\216\245\346\243\200\346\265\213/1.md" new file mode 100644 index 0000000000000000000000000000000000000000..d49267b995a1bec46c5f6f4de4f51d75da514ea7 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/1.\347\275\221\347\253\231\350\277\236\346\216\245\346\243\200\346\265\213/1.md" @@ -0,0 +1,7 @@ +# 项目说明 + +实现一个检测网站是否可连接的Python小项目 + +# 项目地址 + + diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/1.\347\275\221\347\253\231\350\277\236\346\216\245\346\243\200\346\265\213/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/1.\347\275\221\347\253\231\350\277\236\346\216\245\346\243\200\346\265\213/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..fe8c55d1b8742528760950798216a43f7ec16664 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/1.\347\275\221\347\253\231\350\277\236\346\216\245\346\243\200\346\265\213/config.json" @@ -0,0 +1,12 @@ +{ + "node_id": "python_4_beginnners-0466c6f326004c5d979b1e535d263957", + "keywords": [], + "children": [], + "export": [ + "1.json" + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/2.\351\232\217\346\234\272\345\257\206\347\240\201\347\224\237\346\210\220\345\231\250/1.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/2.\351\232\217\346\234\272\345\257\206\347\240\201\347\224\237\346\210\220\345\231\250/1.json" new file mode 100644 index 0000000000000000000000000000000000000000..7c26334c1497ae92328a5d67cbef372f7db0a3bb --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/2.\351\232\217\346\234\272\345\257\206\347\240\201\347\224\237\346\210\220\345\231\250/1.json" @@ -0,0 +1,9 @@ +{ + "type": "inscode_project", + "author": null, + "source": "1.md", + "notebook_enable": false, + "exercise_id": "22cbdc9d041842e78292afbb3b9c6b0f", + "project": "https://gitcode.net/csdn/inscode_project/python_random_password_generator", + "desc": "实现一个随机密码生成器的Python小项目\n# 项目地址" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/2.\351\232\217\346\234\272\345\257\206\347\240\201\347\224\237\346\210\220\345\231\250/1.md" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/2.\351\232\217\346\234\272\345\257\206\347\240\201\347\224\237\346\210\220\345\231\250/1.md" new file mode 100644 index 0000000000000000000000000000000000000000..8177db50a93c337d1b7ded4e28e8d03c7fa6a50b --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/2.\351\232\217\346\234\272\345\257\206\347\240\201\347\224\237\346\210\220\345\231\250/1.md" @@ -0,0 +1,7 @@ +# 项目说明 + +实现一个随机密码生成器的Python小项目 + +# 项目地址 + + diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/2.\351\232\217\346\234\272\345\257\206\347\240\201\347\224\237\346\210\220\345\231\250/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/2.\351\232\217\346\234\272\345\257\206\347\240\201\347\224\237\346\210\220\345\231\250/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..4c1f1d75339a393f930f998ee102895329ae1914 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/2.\351\232\217\346\234\272\345\257\206\347\240\201\347\224\237\346\210\220\345\231\250/config.json" @@ -0,0 +1,12 @@ +{ + "node_id": "python_4_beginnners-a3aa7f9b26d843e8bfba406b6ce0a0db", + "keywords": [], + "children": [], + "export": [ + "1.json" + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/3.\347\224\237\346\210\220\344\272\214\347\273\264\347\240\201/1.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/3.\347\224\237\346\210\220\344\272\214\347\273\264\347\240\201/1.json" new file mode 100644 index 0000000000000000000000000000000000000000..2eb816ecd15672f130d3406d23a74e22ace9b4f8 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/3.\347\224\237\346\210\220\344\272\214\347\273\264\347\240\201/1.json" @@ -0,0 +1,9 @@ +{ + "type": "inscode_project", + "author": null, + "source": "1.md", + "notebook_enable": false, + "exercise_id": "f9416218e99d45d6adae565552d4f026", + "project": "https://gitcode.net/csdn/inscode_project/python_qr_code", + "desc": "实现一个生成url二维码的Python小项目\n# 项目地址" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/3.\347\224\237\346\210\220\344\272\214\347\273\264\347\240\201/1.md" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/3.\347\224\237\346\210\220\344\272\214\347\273\264\347\240\201/1.md" new file mode 100644 index 0000000000000000000000000000000000000000..9fba6800c0ed34d134156f17b733082e382b63da --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/3.\347\224\237\346\210\220\344\272\214\347\273\264\347\240\201/1.md" @@ -0,0 +1,7 @@ +# 项目说明 + +实现一个生成url二维码的Python小项目 + +# 项目地址 + + diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/3.\347\224\237\346\210\220\344\272\214\347\273\264\347\240\201/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/3.\347\224\237\346\210\220\344\272\214\347\273\264\347\240\201/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..94192e562e5159fddbdefb1bf3bd99fdb5a65d7a --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/3.\347\224\237\346\210\220\344\272\214\347\273\264\347\240\201/config.json" @@ -0,0 +1,12 @@ +{ + "node_id": "python_4_beginnners-af7d6f9e32394a118df110b61b55c4cd", + "keywords": [], + "children": [], + "export": [ + "1.json" + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/4.\350\213\261\350\257\221\350\213\261\350\257\215\345\205\270/1.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/4.\350\213\261\350\257\221\350\213\261\350\257\215\345\205\270/1.json" new file mode 100644 index 0000000000000000000000000000000000000000..029bbbdd055d47998204494ceb5009e046d66d53 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/4.\350\213\261\350\257\221\350\213\261\350\257\215\345\205\270/1.json" @@ -0,0 +1,9 @@ +{ + "type": "inscode_project", + "author": null, + "source": "1.md", + "notebook_enable": false, + "exercise_id": "bd83a9af4c424e62af8820df2e09d20d", + "project": "https://gitcode.net/csdn/inscode_project/python_word_dictionary", + "desc": "实现一个英译英的Python词典小项目\n# 项目地址" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/4.\350\213\261\350\257\221\350\213\261\350\257\215\345\205\270/1.md" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/4.\350\213\261\350\257\221\350\213\261\350\257\215\345\205\270/1.md" new file mode 100644 index 0000000000000000000000000000000000000000..ded0d19d078aa6da745bd4cfd01f4ad075bf5f6f --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/4.\350\213\261\350\257\221\350\213\261\350\257\215\345\205\270/1.md" @@ -0,0 +1,7 @@ +# 项目说明 + +实现一个英译英的Python词典小项目 + +# 项目地址 + + diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/4.\350\213\261\350\257\221\350\213\261\350\257\215\345\205\270/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/4.\350\213\261\350\257\221\350\213\261\350\257\215\345\205\270/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..fabd478a85d64c7a39a03f7c31e1d105852ce9f1 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/4.\350\213\261\350\257\221\350\213\261\350\257\215\345\205\270/config.json" @@ -0,0 +1,12 @@ +{ + "node_id": "python_4_beginnners-e54319650cda436eb9f81e81df74e3bb", + "keywords": [], + "children": [], + "export": [ + "1.json" + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..5c5fcd2529afae82cdd5a05f0478e52b01215079 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/2.\345\260\217\345\272\224\347\224\250/config.json" @@ -0,0 +1,8 @@ +{ + "node_id": "python_4_beginnners-4b1388bf140746debb0ec48dfe184a56", + "keywords": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/1.\347\256\200\346\230\223\345\233\233\345\210\231\350\277\220\347\256\227/1.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/1.\347\256\200\346\230\223\345\233\233\345\210\231\350\277\220\347\256\227/1.json" new file mode 100644 index 0000000000000000000000000000000000000000..8be005f698c04adfae3fc39a1eda371a4ea1195e --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/1.\347\256\200\346\230\223\345\233\233\345\210\231\350\277\220\347\256\227/1.json" @@ -0,0 +1,9 @@ +{ + "type": "inscode_project", + "author": null, + "source": "1.md", + "notebook_enable": false, + "exercise_id": "aeeb53ccd089419a90c09772e69a93df", + "project": "https://gitcode.net/csdn/inscode_project/python_basic_calculator", + "desc": "实现一个四则运算Python小项目\n# 项目地址" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/1.\347\256\200\346\230\223\345\233\233\345\210\231\350\277\220\347\256\227/1.md" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/1.\347\256\200\346\230\223\345\233\233\345\210\231\350\277\220\347\256\227/1.md" new file mode 100644 index 0000000000000000000000000000000000000000..5a22b3f0a95d67e83e6ff5d02735130794f4ccba --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/1.\347\256\200\346\230\223\345\233\233\345\210\231\350\277\220\347\256\227/1.md" @@ -0,0 +1,7 @@ +# 项目说明 + +实现一个四则运算Python小项目 + +# 项目地址 + + diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/1.\347\256\200\346\230\223\345\233\233\345\210\231\350\277\220\347\256\227/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/1.\347\256\200\346\230\223\345\233\233\345\210\231\350\277\220\347\256\227/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..1db2fbe1350a882aa6bc0c04929beaa438cb740e --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/1.\347\256\200\346\230\223\345\233\233\345\210\231\350\277\220\347\256\227/config.json" @@ -0,0 +1,12 @@ +{ + "node_id": "python_4_beginnners-a8f965f765bf4500843e62ece714cc89", + "keywords": [], + "children": [], + "export": [ + "1.json" + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/2.\347\237\263\345\244\264\345\211\252\345\210\200\345\270\203/1.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/2.\347\237\263\345\244\264\345\211\252\345\210\200\345\270\203/1.json" new file mode 100644 index 0000000000000000000000000000000000000000..9f75a79d9f584ed0b5d60497a7491318db9efc65 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/2.\347\237\263\345\244\264\345\211\252\345\210\200\345\270\203/1.json" @@ -0,0 +1,9 @@ +{ + "type": "inscode_project", + "author": null, + "source": "1.md", + "notebook_enable": false, + "exercise_id": "0feab7fb2191492ca8f11af7e5d28872", + "project": "https://gitcode.net/csdn/inscode_project/python_rock_paper_scissors", + "desc": "实现一个石头剪刀布Python小游戏项目\n# 项目地址" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/2.\347\237\263\345\244\264\345\211\252\345\210\200\345\270\203/1.md" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/2.\347\237\263\345\244\264\345\211\252\345\210\200\345\270\203/1.md" new file mode 100644 index 0000000000000000000000000000000000000000..4634c37762827a61ce5db2367e698683530cb724 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/2.\347\237\263\345\244\264\345\211\252\345\210\200\345\270\203/1.md" @@ -0,0 +1,7 @@ +# 项目说明 + +实现一个石头剪刀布Python小游戏项目 + +# 项目地址 + + diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/2.\347\237\263\345\244\264\345\211\252\345\210\200\345\270\203/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/2.\347\237\263\345\244\264\345\211\252\345\210\200\345\270\203/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..607814db7d3aebd93d403eaf4cf4c862bc6ef865 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/2.\347\237\263\345\244\264\345\211\252\345\210\200\345\270\203/config.json" @@ -0,0 +1,12 @@ +{ + "node_id": "python_4_beginnners-b01f29ed0412400e9bb5ad9334fb1bb1", + "keywords": [], + "children": [], + "export": [ + "1.json" + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/3.\344\272\214\345\210\206\346\237\245\346\211\276/1.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/3.\344\272\214\345\210\206\346\237\245\346\211\276/1.json" new file mode 100644 index 0000000000000000000000000000000000000000..52547a3eb7bb09e9d0b8dc4c46f6fe449710612b --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/3.\344\272\214\345\210\206\346\237\245\346\211\276/1.json" @@ -0,0 +1,9 @@ +{ + "type": "inscode_project", + "author": null, + "source": "1.md", + "notebook_enable": false, + "exercise_id": "f02f16ef6b1a4efaae9f51c1c6c8a39a", + "project": "https://gitcode.net/csdn/inscode_project/python_binary_search_algorithm", + "desc": "实现一个二分查找Python小项目\n# 项目地址" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/3.\344\272\214\345\210\206\346\237\245\346\211\276/1.md" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/3.\344\272\214\345\210\206\346\237\245\346\211\276/1.md" new file mode 100644 index 0000000000000000000000000000000000000000..7920af743b0f9dff5025cae40a890a7200c6b1d7 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/3.\344\272\214\345\210\206\346\237\245\346\211\276/1.md" @@ -0,0 +1,7 @@ +# 项目说明 + +实现一个二分查找Python小项目 + +# 项目地址 + + diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/3.\344\272\214\345\210\206\346\237\245\346\211\276/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/3.\344\272\214\345\210\206\346\237\245\346\211\276/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..14d7fd91f5d61251fd1d1ed3ee8231decbe8db58 --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/3.\344\272\214\345\210\206\346\237\245\346\211\276/config.json" @@ -0,0 +1,12 @@ +{ + "node_id": "python_4_beginnners-22fa8e1100e1403e8c2fb482c7bf4b0a", + "keywords": [], + "children": [], + "export": [ + "1.json" + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..deb9c50fc3f4cd30b9b5f55255efdd02ad2280dc --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/3.\345\260\217\350\256\241\347\256\227/config.json" @@ -0,0 +1,8 @@ +{ + "node_id": "python_4_beginnners-b93ad1bb06fd47ab92b425ac0ab91cd4", + "keywords": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/config.json" "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..ab3026ec15e82b92e73e1a5b57bd5ad30bfbfcde --- /dev/null +++ "b/data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/config.json" @@ -0,0 +1,8 @@ +{ + "node_id": "python_4_beginnners-07a68328bb3c4588b57fd11c64e638e5", + "keywords": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/2.Python\346\226\260\346\211\213\346\235\221\344\270\255\351\230\266/config.json" "b/data/2.Python\346\226\260\346\211\213\346\235\221\344\270\255\351\230\266/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..41f7c2da2486571735066dea499c12e0e1dc7e9c --- /dev/null +++ "b/data/2.Python\346\226\260\346\211\213\346\235\221\344\270\255\351\230\266/config.json" @@ -0,0 +1,8 @@ +{ + "node_id": "python_4_beginnners-1a161288c6c5424cb922a0f11758bb04", + "keywords": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git "a/data/3.Python\346\226\260\346\211\213\346\235\221\351\253\230\351\230\266/config.json" "b/data/3.Python\346\226\260\346\211\213\346\235\221\351\253\230\351\230\266/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..a62b44ff50abf2711c0271635f39535034a2acf5 --- /dev/null +++ "b/data/3.Python\346\226\260\346\211\213\346\235\221\351\253\230\351\230\266/config.json" @@ -0,0 +1,8 @@ +{ + "node_id": "python_4_beginnners-a31bef25c8f44341b8a7bd376f7c32de", + "keywords": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git a/data/config.json b/data/config.json new file mode 100644 index 0000000000000000000000000000000000000000..17d2bd61ab2fdc29741b5518650ccda54ac57e7e --- /dev/null +++ b/data/config.json @@ -0,0 +1,9 @@ +{ + "tree_name": "python_4_beginnners", + "keywords": [], + "node_id": "python_4_beginnners-cdfd66dd5b434e25bcf6d56ba7d14ba4", + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" +} \ No newline at end of file diff --git a/data/tree.json b/data/tree.json new file mode 100644 index 0000000000000000000000000000000000000000..a6e41e8e8421617978c8d44aded7abb190f06604 --- /dev/null +++ b/data/tree.json @@ -0,0 +1,192 @@ +{ + "python_4_beginnners": { + "node_id": "python_4_beginnners-cdfd66dd5b434e25bcf6d56ba7d14ba4", + "keywords": [], + "children": [ + { + "Python新手村初阶": { + "node_id": "python_4_beginnners-07a68328bb3c4588b57fd11c64e638e5", + "keywords": [], + "children": [ + { + "小体验": { + "node_id": "python_4_beginnners-c42898e17bdb4d6e9dabf83994bc5070", + "keywords": [], + "children": [ + { + "流浪地球": { + "node_id": "python_4_beginnners-006e3436e5934d64bb751a2326b3ea33", + "keywords": [], + "children": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + }, + { + "判断是否闰年": { + "node_id": "python_4_beginnners-0904efe56f8a40bdb50fc87fcc5c4681", + "keywords": [], + "children": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + }, + { + "世界地理答题游戏": { + "node_id": "python_4_beginnners-d6282042d71b4eed83018bae62c8a85b", + "keywords": [], + "children": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + } + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + }, + { + "小应用": { + "node_id": "python_4_beginnners-4b1388bf140746debb0ec48dfe184a56", + "keywords": [], + "children": [ + { + "网站连接检测": { + "node_id": "python_4_beginnners-0466c6f326004c5d979b1e535d263957", + "keywords": [], + "children": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + }, + { + "随机密码生成器": { + "node_id": "python_4_beginnners-a3aa7f9b26d843e8bfba406b6ce0a0db", + "keywords": [], + "children": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + }, + { + "生成二维码": { + "node_id": "python_4_beginnners-af7d6f9e32394a118df110b61b55c4cd", + "keywords": [], + "children": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + }, + { + "英译英词典": { + "node_id": "python_4_beginnners-e54319650cda436eb9f81e81df74e3bb", + "keywords": [], + "children": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + } + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + }, + { + "小计算": { + "node_id": "python_4_beginnners-b93ad1bb06fd47ab92b425ac0ab91cd4", + "keywords": [], + "children": [ + { + "简易四则运算": { + "node_id": "python_4_beginnners-a8f965f765bf4500843e62ece714cc89", + "keywords": [], + "children": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + }, + { + "石头剪刀布": { + "node_id": "python_4_beginnners-b01f29ed0412400e9bb5ad9334fb1bb1", + "keywords": [], + "children": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + }, + { + "二分查找": { + "node_id": "python_4_beginnners-22fa8e1100e1403e8c2fb482c7bf4b0a", + "keywords": [], + "children": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + } + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + } + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + }, + { + "Python新手村中阶": { + "node_id": "python_4_beginnners-1a161288c6c5424cb922a0f11758bb04", + "keywords": [], + "children": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + }, + { + "Python新手村高阶": { + "node_id": "python_4_beginnners-a31bef25c8f44341b8a7bd376f7c32de", + "keywords": [], + "children": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } + } + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0, + "subtree": "" + } +} \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000000000000000000000000000000000000..dc8f873c605ad54e3424682df1d8a487aa661d2b --- /dev/null +++ b/main.py @@ -0,0 +1,44 @@ +from skill_tree.tree import TreeWalker,dump_json,load_json +import os + +# def read_markdown(file): +# start_desc = False +# start_project = False +# desc = [] +# project = [] +# with open(file,'r') as f: +# for line in f.readlines(): +# line = line.strip("\n") +# if start_desc and line.strip()!="": +# desc.append(line) +# if start_project and line.strip()!="": +# project.append(line) +# if line=="# 项目说明": +# start_desc = True +# if line=="# 项目地址": +# start_desc = False +# start_project=True + +# print(desc) +# print(project) +# return "\n".join(desc), project[0].strip().replace("<","").replace(">","") + + +# def walk_project_2_config(data_path): +# for base,dirs,files in os.walk(data_path): +# for file in files: +# parts = file.split(".") +# if parts[-1]=="md": +# desc,project = read_markdown(os.path.join(base,file)) +# config_path = os.path.join(base,file.replace("md","json")) +# config = load_json(config_path) +# config["project"] = project +# config["desc"] = desc +# dump_json(config_path, config, exist_ok=True, override=True) + +if __name__ == '__main__': + walker = TreeWalker("data", "python_4_beginnners", "Python新手村", + ignore_keywords=True, + default_exercise_type="project") + walker.walk() + # walk_project_2_config("data/") diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..650b949429614945604eb6ba09404b0ecd734fda --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +pre_commit +skill-tree-parser \ No newline at end of file