From a989f68bbf6254bd4d15ebf55d9b67d044f1d62f Mon Sep 17 00:00:00 2001 From: feilong Date: Fri, 17 Dec 2021 14:57:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BD=91=E7=BB=9C=E7=88=AC?= =?UTF-8?q?=E8=99=AB=E9=A2=98=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../helloworld.json" | 3 ++- .../class.json" | 11 ++++++----- .../function.json" | 11 ++++++----- .../process.json" | 11 ++++++----- .../install.json" | 11 ++++++----- .../run.json" | 11 ++++++----- .../ide.json" | 11 ++++++----- .../style.json" | 11 ++++++----- .../import_lib.json" | 11 ++++++----- .../import_other_module.json" | 11 ++++++----- .../import_relative.json" | 11 ++++++----- .../step.json" | 11 ++++++----- .../3.\345\207\275\346\225\260/call.json" | 11 ++++++----- .../3.\345\207\275\346\225\260/fact1.json" | 11 ++++++----- .../3.\345\207\275\346\225\260/fact2.json" | 11 ++++++----- .../3.\345\207\275\346\225\260/fibonacci1.json" | 11 ++++++----- .../3.\345\207\275\346\225\260/fibonacci2.json" | 11 ++++++----- .../helloworld2.json" | 11 ++++++----- .../4.\347\261\273/hash_key_value_set.json" | 15 ++++++++------- .../hash_key_value_set_by_compose.json" | 15 ++++++++------- .../4.\347\261\273/key_value_set.json" | 11 ++++++----- .../calc.json" | 4 +++- .../iter.json" | 13 +++++++------ .../dynamic_page.json" | 10 ++++++---- .../simulate_login.json" | 12 +++++++----- .../6.Selenium/selenium.json" | 12 +++++++----- .../pyspider.json" | 12 +++++++----- .../verification_code.json" | 12 +++++++----- .../loc.json" | 11 ++++++----- .../stat.json" | 11 ++++++----- src/tree.py | 17 +++++++++++------ 31 files changed, 193 insertions(+), 152 deletions(-) diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/helloworld.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/helloworld.json" index 5ab2ebc..3b7622c 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/helloworld.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/helloworld.json" @@ -3,5 +3,6 @@ "author": "huanhuilong", "source": "helloworld.md", "depends": [], - "type": "code_options" + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/class.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/class.json" index 46ded95..988df90 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/class.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/class.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "class.md", - "depends": [], - "exercise_id": 26, - "type": "code_options" + "author": "huanhuilong", + "source": "class.md", + "depends": [], + "exercise_id": 26, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.json" index 1252905..e3c2545 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/function.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "function.md", - "depends": [], - "exercise_id": 28, - "type": "code_options" + "author": "huanhuilong", + "source": "function.md", + "depends": [], + "exercise_id": 28, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/process.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/process.json" index 6b85ad0..deac6d6 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/process.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\347\250\213\345\272\217\350\256\276\350\256\241\346\200\235\346\203\263/process.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "process.md", - "depends": [], - "exercise_id": 27, - "type": "code_options" + "author": "huanhuilong", + "source": "process.md", + "depends": [], + "exercise_id": 27, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/install.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/install.json" index bb9200d..9df4d32 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/install.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/install.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "install.md", - "depends": [], - "exercise_id": 31, - "type": "code_options" + "author": "huanhuilong", + "source": "install.md", + "depends": [], + "exercise_id": 31, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/4.\350\277\220\350\241\214\346\226\271\345\274\217/run.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/4.\350\277\220\350\241\214\346\226\271\345\274\217/run.json" index 971bcff..aaadc35 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/4.\350\277\220\350\241\214\346\226\271\345\274\217/run.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/4.\350\277\220\350\241\214\346\226\271\345\274\217/run.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "run.md", - "depends": [], - "exercise_id": 32, - "type": "code_options" + "author": "huanhuilong", + "source": "run.md", + "depends": [], + "exercise_id": 32, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/5.\345\270\270\347\224\250\345\274\200\345\217\221\345\267\245\345\205\267/ide.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/5.\345\270\270\347\224\250\345\274\200\345\217\221\345\267\245\345\205\267/ide.json" index 8e3ee60..fa49a41 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/5.\345\270\270\347\224\250\345\274\200\345\217\221\345\267\245\345\205\267/ide.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/5.\345\270\270\347\224\250\345\274\200\345\217\221\345\267\245\345\205\267/ide.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "ide.md", - "depends": [], - "exercise_id": 30, - "type": "code_options" + "author": "huanhuilong", + "source": "ide.md", + "depends": [], + "exercise_id": 30, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/6.\347\274\226\347\240\201\350\247\204\350\214\203/style.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/6.\347\274\226\347\240\201\350\247\204\350\214\203/style.json" index 5c9158e..c3b06f3 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/6.\347\274\226\347\240\201\350\247\204\350\214\203/style.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/6.\347\274\226\347\240\201\350\247\204\350\214\203/style.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "style.md", - "depends": [], - "exercise_id": 29, - "type": "code_options" + "author": "huanhuilong", + "source": "style.md", + "depends": [], + "exercise_id": 29, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_lib.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_lib.json" index c6c2cae..68c2633 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_lib.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_lib.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "import_lib.md", - "depends": [], - "exercise_id": 163, - "type": "code_options" + "author": "huanhuilong", + "source": "import_lib.md", + "depends": [], + "exercise_id": 163, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_other_module.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_other_module.json" index 8e88a09..96ff22b 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_other_module.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_other_module.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "import_other_module.md", - "depends": [], - "exercise_id": 164, - "type": "code_options" + "author": "huanhuilong", + "source": "import_other_module.md", + "depends": [], + "exercise_id": 164, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_relative.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_relative.json" index feaabd8..992274f 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_relative.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/7.\346\250\241\345\235\227\347\256\241\347\220\206/import_relative.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "import_relative.md", - "depends": [], - "exercise_id": 165, - "type": "code_options" + "author": "huanhuilong", + "source": "import_relative.md", + "depends": [], + "exercise_id": 165, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/1.\347\274\251\350\277\233\350\247\204\345\210\231/step.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/1.\347\274\251\350\277\233\350\247\204\345\210\231/step.json" index 6f96948..e3d6571 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/1.\347\274\251\350\277\233\350\247\204\345\210\231/step.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/1.\347\274\251\350\277\233\350\247\204\345\210\231/step.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "step.md", - "depends": [], - "exercise_id": 83, - "type": "code_options" + "author": "huanhuilong", + "source": "step.md", + "depends": [], + "exercise_id": 83, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/call.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/call.json" index f1b2890..da3b2d0 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/call.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/call.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "call.md", - "depends": [], - "exercise_id": 197, - "type": "code_options" + "author": "huanhuilong", + "source": "call.md", + "depends": [], + "exercise_id": 197, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact1.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact1.json" index 92d0b49..3c3ed74 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact1.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact1.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "fact1.md", - "depends": [], - "exercise_id": 190, - "type": "code_options" + "author": "huanhuilong", + "source": "fact1.md", + "depends": [], + "exercise_id": 190, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact2.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact2.json" index 57644d0..c02102e 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact2.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fact2.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "fact2.md", - "depends": [], - "exercise_id": 244, - "type": "code_options" + "author": "huanhuilong", + "source": "fact2.md", + "depends": [], + "exercise_id": 244, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci1.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci1.json" index 497f5e7..644128e 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci1.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci1.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "fibonacci1.md", - "depends": [], - "exercise_id": 201, - "type": "code_options" + "author": "huanhuilong", + "source": "fibonacci1.md", + "depends": [], + "exercise_id": 201, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci2.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci2.json" index 79692cb..8d83f7f 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci2.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/fibonacci2.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "fibonacci2.md", - "depends": [], - "exercise_id": 239, - "type": "code_options" + "author": "huanhuilong", + "source": "fibonacci2.md", + "depends": [], + "exercise_id": 239, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/helloworld2.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/helloworld2.json" index df054bb..9b31dec 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/helloworld2.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/3.\345\207\275\346\225\260/helloworld2.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "helloworld2.md", - "depends": [], - "exercise_id": 166, - "type": "code_options" + "author": "huanhuilong", + "source": "helloworld2.md", + "depends": [], + "exercise_id": 166, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set.json" index b48bb65..86ea9cf 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set.json" @@ -1,9 +1,10 @@ { - "author": "huanhuilong", - "source": "hash_key_value_set.py", - "depends": [ - "key_value_set.py" - ], - "exercise_id": 169, - "type": "code_options" + "author": "huanhuilong", + "source": "hash_key_value_set.py", + "depends": [ + "key_value_set.py" + ], + "exercise_id": 169, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set_by_compose.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set_by_compose.json" index 366f829..70982f6 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set_by_compose.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/hash_key_value_set_by_compose.json" @@ -1,9 +1,10 @@ { - "author": "huanhuilong", - "source": "hash_key_value_set_by_compose.py", - "depends": [ - "key_value_set.py" - ], - "exercise_id": 168, - "type": "code_options" + "author": "huanhuilong", + "source": "hash_key_value_set_by_compose.py", + "depends": [ + "key_value_set.py" + ], + "exercise_id": 168, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/key_value_set.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/key_value_set.json" index 97b94cb..edfd3e2 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/key_value_set.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/4.\347\261\273/key_value_set.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "key_value_set.md", - "depends": [], - "exercise_id": 167, - "type": "code_options" + "author": "huanhuilong", + "source": "key_value_set.md", + "depends": [], + "exercise_id": 167, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/5.\351\241\272\345\272\217\350\257\255\345\217\245\347\273\223\346\236\204/calc.json" "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/5.\351\241\272\345\272\217\350\257\255\345\217\245\347\273\223\346\236\204/calc.json" index 3dc6db3..ab0f841 100644 --- "a/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/5.\351\241\272\345\272\217\350\257\255\345\217\245\347\273\223\346\236\204/calc.json" +++ "b/data/1.python\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/5.\351\241\272\345\272\217\350\257\255\345\217\245\347\273\223\346\236\204/calc.json" @@ -2,5 +2,7 @@ "source": "calc.py", "depends": [], "exercise_id": 76, - "type": "code_options" + "type": "code_options", + "notebook_enable": true, + "author": "feilong" } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/iter.json" "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/iter.json" index 5de60bd..8bbc67b 100644 --- "a/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/iter.json" +++ "b/data/1.python\345\210\235\351\230\266/3.\350\277\233\351\230\266\350\257\255\346\263\225/1.\345\210\227\350\241\250\346\216\250\345\257\274\345\274\217/iter.json" @@ -1,7 +1,8 @@ { - "author": "HansBug", - "source": "iter.md", - "depends": [], - "exercise_id": 190, - "type": "code_options" -} + "author": "HansBug", + "source": "iter.md", + "depends": [], + "exercise_id": "4ded2d6929124ddd90f409a72eb073cc", + "type": "code_options", + "notebook_enable": true +} \ No newline at end of file diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/10.\345\212\250\346\200\201\346\270\262\346\237\223\351\241\265\351\235\242\347\210\254\345\217\226/dynamic_page.json" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/10.\345\212\250\346\200\201\346\270\262\346\237\223\351\241\265\351\235\242\347\210\254\345\217\226/dynamic_page.json" index 9426ef9..1146b66 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/10.\345\212\250\346\200\201\346\270\262\346\237\223\351\241\265\351\235\242\347\210\254\345\217\226/dynamic_page.json" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/10.\345\212\250\346\200\201\346\270\262\346\237\223\351\241\265\351\235\242\347\210\254\345\217\226/dynamic_page.json" @@ -1,6 +1,8 @@ { - "author": "zxm2015", - "source": "dynamic_page.md", - "depends": [], - "type": "code_options" + "author": "zxm2015", + "source": "dynamic_page.md", + "depends": [], + "type": "code_options", + "exercise_id": "d723ad753e0f4367932a9436f8732ec8", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/11.\346\250\241\346\213\237\347\231\273\345\275\225/simulate_login.json" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/11.\346\250\241\346\213\237\347\231\273\345\275\225/simulate_login.json" index 859db92..767ed2c 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/11.\346\250\241\346\213\237\347\231\273\345\275\225/simulate_login.json" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/11.\346\250\241\346\213\237\347\231\273\345\275\225/simulate_login.json" @@ -1,6 +1,8 @@ { - "author": "zxm2015", - "source": "simulate_login.md", - "depends": [], - "type": "code_options" -} + "author": "zxm2015", + "source": "simulate_login.md", + "depends": [], + "type": "code_options", + "exercise_id": "b909e9d8af9c44498ffc0519d7b8be62", + "notebook_enable": true +} \ No newline at end of file diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/6.Selenium/selenium.json" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/6.Selenium/selenium.json" index 564aec3..324e2da 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/6.Selenium/selenium.json" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/6.Selenium/selenium.json" @@ -1,6 +1,8 @@ { - "author": "zxm2015", - "source": "selenium.md", - "depends": [], - "type": "code_options" -} + "author": "zxm2015", + "source": "selenium.md", + "depends": [], + "type": "code_options", + "exercise_id": "fa67f7b6cfb94d4aa5048c0748220313", + "notebook_enable": true +} \ No newline at end of file diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/8.pyspider\346\241\206\346\236\266\347\232\204\344\275\277\347\224\250/pyspider.json" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/8.pyspider\346\241\206\346\236\266\347\232\204\344\275\277\347\224\250/pyspider.json" index 3e7130b..d367860 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/8.pyspider\346\241\206\346\236\266\347\232\204\344\275\277\347\224\250/pyspider.json" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/8.pyspider\346\241\206\346\236\266\347\232\204\344\275\277\347\224\250/pyspider.json" @@ -1,6 +1,8 @@ { - "author": "zxm2015", - "source": "pyspider.md", - "depends": [], - "type": "code_options" -} + "author": "zxm2015", + "source": "pyspider.md", + "depends": [], + "type": "code_options", + "exercise_id": "2a356f5e71174f599bfea527cd062057", + "notebook_enable": true +} \ No newline at end of file diff --git "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/9.\351\252\214\350\257\201\347\240\201\345\244\204\347\220\206/verification_code.json" "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/9.\351\252\214\350\257\201\347\240\201\345\244\204\347\220\206/verification_code.json" index 9820a53..4e059ef 100644 --- "a/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/9.\351\252\214\350\257\201\347\240\201\345\244\204\347\220\206/verification_code.json" +++ "b/data/2.python\344\270\255\351\230\266/3.\347\275\221\347\273\234\347\210\254\350\231\253/9.\351\252\214\350\257\201\347\240\201\345\244\204\347\220\206/verification_code.json" @@ -1,6 +1,8 @@ { - "author": "zxm2015", - "source": "verification_code.md", - "depends": [], - "type": "code_options" -} + "author": "zxm2015", + "source": "verification_code.md", + "depends": [], + "type": "code_options", + "exercise_id": "9ae36338010949038ac029a0396b9d10", + "notebook_enable": true +} \ No newline at end of file diff --git "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/3.\345\237\272\346\234\254\346\223\215\344\275\234/loc.json" "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/3.\345\237\272\346\234\254\346\223\215\344\275\234/loc.json" index b2fa28b..f8dcee8 100644 --- "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/3.\345\237\272\346\234\254\346\223\215\344\275\234/loc.json" +++ "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/3.\345\237\272\346\234\254\346\223\215\344\275\234/loc.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "loc.md", - "depends": [], - "exercise_id": 121, - "type": "code_options" + "author": "huanhuilong", + "source": "loc.md", + "depends": [], + "exercise_id": 121, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/4.\351\253\230\347\272\247\345\272\224\347\224\250/stat.json" "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/4.\351\253\230\347\272\247\345\272\224\347\224\250/stat.json" index 237918b..8da3341 100644 --- "a/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/4.\351\253\230\347\272\247\345\272\224\347\224\250/stat.json" +++ "b/data/3.python\351\253\230\351\230\266/2.\347\273\223\346\236\204\345\214\226\346\225\260\346\215\256\345\210\206\346\236\220\345\267\245\345\205\267Pandas/4.\351\253\230\347\272\247\345\272\224\347\224\250/stat.json" @@ -1,7 +1,8 @@ { - "author": "huanhuilong", - "source": "stat.md", - "depends": [], - "exercise_id": 125, - "type": "code_options" + "author": "huanhuilong", + "source": "stat.md", + "depends": [], + "exercise_id": 125, + "type": "code_options", + "notebook_enable": true } \ No newline at end of file diff --git a/src/tree.py b/src/tree.py index c31754d..1b85cbf 100644 --- a/src/tree.py +++ b/src/tree.py @@ -16,9 +16,11 @@ handler.setFormatter(formatter) logger.addHandler(handler) repo = git.Repo(".") + def user_name(): return repo.config_reader().get_value("user", "name") + def load_json(p): with open(p, 'r') as f: return json.loads(f.read()) @@ -100,11 +102,13 @@ class TreeWalker: for index, chapter in enumerate(level_node["children"]): chapter_title = list(chapter.keys())[0] chapter_node = list(chapter.values())[0] - chapter_path = os.path.join(level_path, f"{index + 1}.{chapter_title}") + chapter_path = os.path.join( + level_path, f"{index + 1}.{chapter_title}") self.load_sections(chapter_path, chapter_node) for index, section_node in enumerate(chapter_node["children"]): section_title = list(section_node.keys())[0] - full_path = os.path.join(chapter_path, f"{index + 1}.{section_title}") + full_path = os.path.join( + chapter_path, f"{index + 1}.{section_title}") if os.path.isdir(full_path): self.check_section_keywords(full_path) self.ensure_exercises(full_path) @@ -322,7 +326,8 @@ class TreeWalker: config["export"] = export if flag: - dump_json(os.path.join(section_path, "config.json"), config, True, True) + dump_json(os.path.join(section_path, "config.json"), + config, True, True) for e in config.get("export", []): full_name = os.path.join(section_path, e) @@ -370,6 +375,6 @@ class TreeWalker: def check_section_keywords(self, full_path): config = self.ensure_section_config(full_path) - if not config.get("keywords", []): - self.logger.error(f"节点 [{full_path}] 的关键字为空,请修改配置文件写入关键字") - sys.exit(1) + # if not config.get("keywords", []): + # self.logger.error(f"节点 [{full_path}] 的关键字为空,请修改配置文件写入关键字") + # sys.exit(1) -- GitLab