From 50aeb3abc785745fc01dd90a8bbb2afcd8179bbd Mon Sep 17 00:00:00 2001 From: feilong Date: Sun, 26 Feb 2023 15:32:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=9610=E4=B8=AA=E8=BF=B7?= =?UTF-8?q?=E4=BD=A0Python=E5=B0=8F=E9=A1=B9=E7=9B=AE=E7=9A=84=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=8D=B3=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 10 + README.md | 153 +++++++++++++- .../1.json" | 9 + .../1.md" | 7 + .../config.json" | 12 ++ .../1.json" | 9 + .../1.md" | 7 + .../config.json" | 12 ++ .../1.json" | 9 + .../1.md" | 7 + .../config.json" | 12 ++ .../config.json" | 8 + .../1.json" | 9 + .../1.md" | 7 + .../config.json" | 12 ++ .../1.json" | 9 + .../1.md" | 7 + .../config.json" | 12 ++ .../1.json" | 9 + .../1.md" | 7 + .../config.json" | 12 ++ .../1.json" | 9 + .../1.md" | 7 + .../config.json" | 12 ++ .../config.json" | 8 + .../1.json" | 9 + .../1.md" | 7 + .../config.json" | 12 ++ .../1.json" | 9 + .../1.md" | 7 + .../config.json" | 12 ++ .../1.json" | 9 + .../1.md" | 7 + .../config.json" | 12 ++ .../config.json" | 8 + .../config.json" | 8 + .../config.json" | 8 + .../config.json" | 8 + data/config.json | 9 + data/tree.json | 192 ++++++++++++++++++ main.py | 44 ++++ requirements.txt | 2 + 42 files changed, 736 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" create mode 100644 "data/1.Python\346\226\260\346\211\213\346\235\221\345\210\235\351\230\266/config.json" create mode 100644 "data/2.Python\346\226\260\346\211\213\346\235\221\344\270\255\351\230\266/config.json" create mode 100644 "data/3.Python\346\226\260\346\211\213\346\235\221\351\253\230\351\230\266/config.json" create mode 100644 data/config.json create mode 100644 data/tree.json create mode 100644 main.py create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cb7465f --- /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 30bda9f..723456d 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 0000000..993ba4c --- /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 0000000..93a9ef5 --- /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 0000000..4244e13 --- /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 0000000..88626a3 --- /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 0000000..7aedfd6 --- /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 0000000..82f6f74 --- /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 0000000..676095c --- /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 0000000..815923d --- /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 0000000..4271987 --- /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 0000000..72cee8a --- /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 0000000..b5e54bc --- /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 0000000..d49267b --- /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 0000000..fe8c55d --- /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 0000000..7c26334 --- /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 0000000..8177db5 --- /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 0000000..4c1f1d7 --- /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 0000000..2eb816e --- /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 0000000..9fba680 --- /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 0000000..94192e5 --- /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 0000000..029bbbd --- /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 0000000..ded0d19 --- /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 0000000..fabd478 --- /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 0000000..5c5fcd2 --- /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 0000000..8be005f --- /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 0000000..5a22b3f --- /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 0000000..1db2fbe --- /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 0000000..9f75a79 --- /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 0000000..4634c37 --- /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 0000000..607814d --- /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 0000000..52547a3 --- /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 0000000..7920af7 --- /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 0000000..14d7fd9 --- /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 0000000..deb9c50 --- /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 0000000..ab3026e --- /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 0000000..41f7c2d --- /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 0000000..a62b44f --- /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 0000000..17d2bd6 --- /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 0000000..a6e41e8 --- /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 0000000..dc8f873 --- /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 0000000..650b949 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +pre_commit +skill-tree-parser \ No newline at end of file -- GitLab