From b70a3db80dde7183264801f3a24478dc0c1080de Mon Sep 17 00:00:00 2001 From: luxin Date: Mon, 25 Oct 2021 17:39:58 +0800 Subject: [PATCH] add title field for config files --- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 5 +- .../config.json" | 5 +- .../config.json" | 13 ++-- .../1.\345\217\230\351\207\217/config.json" | 3 +- .../2.\345\270\270\351\207\217/config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 5 +- .../config.json" | 5 +- .../config.json" | 13 ++-- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../2.\346\225\260\347\273\204/config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../3.\346\214\207\351\222\210/config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 11 +-- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 5 +- .../config.json" | 5 +- .../config.json" | 7 +- .../config.json" | 5 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- .../5.\346\226\207\344\273\266/config.json" | 3 +- .../config.json" | 5 +- .../config.json" | 69 ++++++++++--------- .../config.json" | 3 +- .../config.json" | 23 ++++--- .../config.json" | 5 +- .../config.json" | 3 +- .../config.json" | 3 +- .../config.json" | 3 +- data/config.json | 3 +- src/tree.py | 31 +++++++++ 84 files changed, 269 insertions(+), 147 deletions(-) diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/1.C\350\257\255\350\250\200\345\217\221\345\261\225\345\217\262/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/1.C\350\257\255\350\250\200\345\217\221\345\261\225\345\217\262/config.json" index eaa98c0..d308a08 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/1.C\350\257\255\350\250\200\345\217\221\345\261\225\345\217\262/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/1.C\350\257\255\350\250\200\345\217\221\345\261\225\345\217\262/config.json" @@ -33,5 +33,6 @@ ], "export": [ "helloworld.json" - ] + ], + "title": "C语言发展史" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/2.C\350\257\255\350\250\200\347\211\271\347\202\271/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/2.C\350\257\255\350\250\200\347\211\271\347\202\271/config.json" index a259041..0b810ae 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/2.C\350\257\255\350\250\200\347\211\271\347\202\271/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/2.C\350\257\255\350\250\200\347\211\271\347\202\271/config.json" @@ -82,5 +82,6 @@ "export": [ "features.json" ], - "node_id": "c-946fc2eeba644ecf93e68974bf69f42a" + "node_id": "c-946fc2eeba644ecf93e68974bf69f42a", + "title": "C语言特点" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/3.C\350\257\255\350\250\200\346\240\207\345\207\206/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/3.C\350\257\255\350\250\200\346\240\207\345\207\206/config.json" index 6b5278d..28cca79 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/3.C\350\257\255\350\250\200\346\240\207\345\207\206/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/3.C\350\257\255\350\250\200\346\240\207\345\207\206/config.json" @@ -70,7 +70,8 @@ } ], "export": [ - "standard.json" + "standard.json" ], - "node_id": "c-3a6b78e1a4804917a5d48231f0cd87ea" + "node_id": "c-3a6b78e1a4804917a5d48231f0cd87ea", + "title": "C语言标准" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/4.\347\274\226\347\250\213\346\234\272\345\210\266/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/4.\347\274\226\347\250\213\346\234\272\345\210\266/config.json" index ca3e19b..92f4493 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/4.\347\274\226\347\250\213\346\234\272\345\210\266/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/4.\347\274\226\347\250\213\346\234\272\345\210\266/config.json" @@ -95,7 +95,8 @@ } ], "export": [ - "compiler.json" + "compiler.json" ], - "node_id": "c-be9d40c8fc0e49c9bbc1e3a0b60b7960" + "node_id": "c-be9d40c8fc0e49c9bbc1e3a0b60b7960", + "title": "编程机制" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/config.json" index bf753dc..9f8ca58 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/1.C\350\257\255\350\250\200\346\246\202\350\277\260/config.json" @@ -1,8 +1,9 @@ { - "node_id": "c-ff93d18873424490849cdcf2ca01a48b", - "keywords": [ - "概述", - "C语言概述", - "C语言" - ] + "node_id": "c-ff93d18873424490849cdcf2ca01a48b", + "keywords": [ + "概述", + "C语言概述", + "C语言" + ], + "title": "C语言概述" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/1.\345\217\230\351\207\217/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/1.\345\217\230\351\207\217/config.json" index 647c868..81a424c 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/1.\345\217\230\351\207\217/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/1.\345\217\230\351\207\217/config.json" @@ -7,5 +7,6 @@ "children": [], "export": [ "variables.json" - ] + ], + "title": "变量" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/2.\345\270\270\351\207\217/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/2.\345\270\270\351\207\217/config.json" index b8abb76..b0180d2 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/2.\345\270\270\351\207\217/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/2.\345\270\270\351\207\217/config.json" @@ -7,5 +7,6 @@ "export": [ "constants.json" ], - "node_id": "c-d3cd094b74334fa3b123b896788aa1ca" + "node_id": "c-d3cd094b74334fa3b123b896788aa1ca", + "title": "常量" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/3.\345\237\272\346\234\254\346\225\260\346\215\256\347\261\273\345\236\213/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/3.\345\237\272\346\234\254\346\225\260\346\215\256\347\261\273\345\236\213/config.json" index 5253afe..afbb348 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/3.\345\237\272\346\234\254\346\225\260\346\215\256\347\261\273\345\236\213/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/3.\345\237\272\346\234\254\346\225\260\346\215\256\347\261\273\345\236\213/config.json" @@ -49,5 +49,6 @@ "export": [ "basic_data_types.json" ], - "node_id": "c-4fd1baa5eb72451aa52e5ef801376f6f" + "node_id": "c-4fd1baa5eb72451aa52e5ef801376f6f", + "title": "基本数据类型" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/config.json" index 0eb3d72..4f4fea5 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/2.\346\225\260\346\215\256\347\261\273\345\236\213/config.json" @@ -5,5 +5,6 @@ ], "children": [], "export": [], - "node_id": "c-c7ef387bd4bf4bd0a87d1886e66160c5" + "node_id": "c-c7ef387bd4bf4bd0a87d1886e66160c5", + "title": "数据类型" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/1.\350\265\213\345\200\274\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/1.\350\265\213\345\200\274\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" index 27745cc..a6bb04a 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/1.\350\265\213\345\200\274\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/1.\350\265\213\345\200\274\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" @@ -11,5 +11,6 @@ "children": [], "export": [ "assignment_op.json" - ] + ], + "title": "赋值运算符与表达式" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/2.\347\256\227\346\234\257\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/2.\347\256\227\346\234\257\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" index bc041d6..0c315d6 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/2.\347\256\227\346\234\257\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/2.\347\256\227\346\234\257\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" @@ -82,5 +82,6 @@ "export": [ "arithmetic_op.json" ], - "node_id": "c-e985fb409a3a43798aa3103cebe813e3" + "node_id": "c-e985fb409a3a43798aa3103cebe813e3", + "title": "算术运算符与表达式" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/3.\345\205\263\347\263\273\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/3.\345\205\263\347\263\273\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" index edbd83f..a8e113b 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/3.\345\205\263\347\263\273\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/3.\345\205\263\347\263\273\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" @@ -72,5 +72,6 @@ "export": [ "relational_op.json" ], - "node_id": "c-08dec025530542b695719ef950730a69" + "node_id": "c-08dec025530542b695719ef950730a69", + "title": "关系运算符与表达式" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/4.\351\200\273\350\276\221\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/4.\351\200\273\350\276\221\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" index 0be8663..66eae8d 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/4.\351\200\273\350\276\221\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/4.\351\200\273\350\276\221\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" @@ -45,5 +45,6 @@ "export": [ "logical_op.json" ], - "node_id": "c-d4ed32eedaed4d44be139eb578ed9f92" + "node_id": "c-d4ed32eedaed4d44be139eb578ed9f92", + "title": "逻辑运算符与表达式" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/5.\351\200\227\345\217\267\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/5.\351\200\227\345\217\267\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" index f54de60..582abdc 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/5.\351\200\227\345\217\267\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/5.\351\200\227\345\217\267\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" @@ -11,5 +11,6 @@ "children": [], "export": [ "comma_op.json" - ] + ], + "title": "逗号运算符与表达式" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/6.\346\235\241\344\273\266\350\277\220\347\256\227\347\254\246/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/6.\346\235\241\344\273\266\350\277\220\347\256\227\347\254\246/config.json" index 6cea508..c90bdc6 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/6.\346\235\241\344\273\266\350\277\220\347\256\227\347\254\246/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/6.\346\235\241\344\273\266\350\277\220\347\256\227\347\254\246/config.json" @@ -11,5 +11,6 @@ "export": [ "conditional_op.json" ], - "node_id": "c-1d3d9e97b98b4151b87c4433d987af83" + "node_id": "c-1d3d9e97b98b4151b87c4433d987af83", + "title": "条件运算符" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/7.sizeof\350\277\220\347\256\227\347\254\246/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/7.sizeof\350\277\220\347\256\227\347\254\246/config.json" index 0e550fc..5027d1d 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/7.sizeof\350\277\220\347\256\227\347\254\246/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/7.sizeof\350\277\220\347\256\227\347\254\246/config.json" @@ -9,5 +9,6 @@ "children": [], "export": [ "sizeof_op.json" - ] + ], + "title": "sizeof运算符" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/8.\350\277\220\347\256\227\347\254\246\344\274\230\345\205\210\347\272\247\344\270\216\346\261\202\345\200\274\351\241\272\345\272\217/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/8.\350\277\220\347\256\227\347\254\246\344\274\230\345\205\210\347\272\247\344\270\216\346\261\202\345\200\274\351\241\272\345\272\217/config.json" index ae87a07..f74caff 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/8.\350\277\220\347\256\227\347\254\246\344\274\230\345\205\210\347\272\247\344\270\216\346\261\202\345\200\274\351\241\272\345\272\217/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/8.\350\277\220\347\256\227\347\254\246\344\274\230\345\205\210\347\272\247\344\270\216\346\261\202\345\200\274\351\241\272\345\272\217/config.json" @@ -11,5 +11,6 @@ "children": [], "export": [ "precedence.json" - ] + ], + "title": "运算符优先级与求值顺序" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" index 51cc4ac..ddd921c 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/3.\350\277\220\347\256\227\347\254\246\344\270\216\350\241\250\350\276\276\345\274\217/config.json" @@ -6,5 +6,6 @@ ], "children": [], "export": [], - "node_id": "c-5002624ecc8d4be1a3d8eab4579ac7b8" + "node_id": "c-5002624ecc8d4be1a3d8eab4579ac7b8", + "title": "运算符与表达式" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/1.\350\257\255\345\217\245\344\270\216\347\250\213\345\272\217\345\235\227/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/1.\350\257\255\345\217\245\344\270\216\347\250\213\345\272\217\345\235\227/config.json" index 8a44301..8113a4f 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/1.\350\257\255\345\217\245\344\270\216\347\250\213\345\272\217\345\235\227/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/1.\350\257\255\345\217\245\344\270\216\347\250\213\345\272\217\345\235\227/config.json" @@ -9,5 +9,6 @@ "children": [], "export": [ "statements_n_blocks.json" - ] + ], + "title": "语句与程序块" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/2.\345\210\244\346\226\255\350\257\255\345\217\245/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/2.\345\210\244\346\226\255\350\257\255\345\217\245/config.json" index c9d2f6d..0da03c0 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/2.\345\210\244\346\226\255\350\257\255\345\217\245/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/2.\345\210\244\346\226\255\350\257\255\345\217\245/config.json" @@ -61,5 +61,6 @@ "ifelse.json", "elseif.json", "switch.json" - ] + ], + "title": "判断语句" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/3.\345\276\252\347\216\257\350\257\255\345\217\245/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/3.\345\276\252\347\216\257\350\257\255\345\217\245/config.json" index e1b24e0..5422c14 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/3.\345\276\252\347\216\257\350\257\255\345\217\245/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/3.\345\276\252\347\216\257\350\257\255\345\217\245/config.json" @@ -77,5 +77,6 @@ "for.json", "goto.json", "while.json" - ] + ], + "title": "循环语句" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/config.json" index 4d66964..26eab97 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/4.\350\257\255\345\217\245\344\270\216\346\216\247\345\210\266\346\265\201/config.json" @@ -7,5 +7,6 @@ "C语言" ], "children": [], - "export": [] + "export": [], + "title": "语句与控制流" } \ No newline at end of file diff --git "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/config.json" "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/config.json" index b47f16f..d19c5b2 100644 --- "a/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/config.json" +++ "b/data/1.C\350\257\255\350\250\200\345\210\235\351\230\266/config.json" @@ -1,4 +1,5 @@ { "node_id": "c-97bc6d47966c47979a9c78cc36741ade", - "keywords": [] + "keywords": [], + "title": "C语言初阶" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/1.\345\207\275\346\225\260\347\232\204\345\243\260\346\230\216\344\270\216\345\256\232\344\271\211/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/1.\345\207\275\346\225\260\347\232\204\345\243\260\346\230\216\344\270\216\345\256\232\344\271\211/config.json" index c477c09..b8ee203 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/1.\345\207\275\346\225\260\347\232\204\345\243\260\346\230\216\344\270\216\345\256\232\344\271\211/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/1.\345\207\275\346\225\260\347\232\204\345\243\260\346\230\216\344\270\216\345\256\232\344\271\211/config.json" @@ -11,5 +11,6 @@ "children": [], "export": [ "definition.json" - ] + ], + "title": "函数的声明与定义" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/2.\345\207\275\346\225\260\347\232\204\345\217\202\346\225\260/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/2.\345\207\275\346\225\260\347\232\204\345\217\202\346\225\260/config.json" index b0d7407..4ceadd9 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/2.\345\207\275\346\225\260\347\232\204\345\217\202\346\225\260/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/2.\345\207\275\346\225\260\347\232\204\345\217\202\346\225\260/config.json" @@ -9,5 +9,6 @@ "children": [], "export": [ "parameter_n_argument.json" - ] + ], + "title": "函数的参数" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/3.\345\207\275\346\225\260\347\232\204\350\277\224\345\233\236/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/3.\345\207\275\346\225\260\347\232\204\350\277\224\345\233\236/config.json" index 83a95fa..de83653 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/3.\345\207\275\346\225\260\347\232\204\350\277\224\345\233\236/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/3.\345\207\275\346\225\260\347\232\204\350\277\224\345\233\236/config.json" @@ -10,5 +10,6 @@ "children": [], "export": [ "return.json" - ] + ], + "title": "函数的返回" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/4.\345\207\275\346\225\260\347\232\204\350\260\203\347\224\250/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/4.\345\207\275\346\225\260\347\232\204\350\260\203\347\224\250/config.json" index d6518f8..16d0e38 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/4.\345\207\275\346\225\260\347\232\204\350\260\203\347\224\250/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/4.\345\207\275\346\225\260\347\232\204\350\260\203\347\224\250/config.json" @@ -9,5 +9,6 @@ "children": [], "export": [ "function_call.json" - ] + ], + "title": "函数的调用" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/5.\345\207\275\346\225\260\347\232\204\351\200\222\345\275\222/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/5.\345\207\275\346\225\260\347\232\204\351\200\222\345\275\222/config.json" index 6ef9566..4bf7945 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/5.\345\207\275\346\225\260\347\232\204\351\200\222\345\275\222/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/5.\345\207\275\346\225\260\347\232\204\351\200\222\345\275\222/config.json" @@ -9,5 +9,6 @@ "children": [], "export": [ "recursion.json" - ] + ], + "title": "函数的递归" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/6.\345\261\200\351\203\250\345\217\230\351\207\217\345\222\214\345\205\250\345\261\200\345\217\230\351\207\217/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/6.\345\261\200\351\203\250\345\217\230\351\207\217\345\222\214\345\205\250\345\261\200\345\217\230\351\207\217/config.json" index 6e6ea5e..1a2899b 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/6.\345\261\200\351\203\250\345\217\230\351\207\217\345\222\214\345\205\250\345\261\200\345\217\230\351\207\217/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/6.\345\261\200\351\203\250\345\217\230\351\207\217\345\222\214\345\205\250\345\261\200\345\217\230\351\207\217/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "global_n_local_var.json" - ] + ], + "title": "局部变量和全局变量" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/7.\345\244\264\346\226\207\344\273\266/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/7.\345\244\264\346\226\207\344\273\266/config.json" index 2e72d82..aa6e524 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/7.\345\244\264\346\226\207\344\273\266/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/7.\345\244\264\346\226\207\344\273\266/config.json" @@ -5,5 +5,8 @@ "C语言" ], "children": [], - "export": ["header.json"] + "export": [ + "header.json" + ], + "title": "头文件" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/8.\345\206\205\351\203\250\345\207\275\346\225\260\345\222\214\345\244\226\351\203\250\345\207\275\346\225\260/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/8.\345\206\205\351\203\250\345\207\275\346\225\260\345\222\214\345\244\226\351\203\250\345\207\275\346\225\260/config.json" index 9de6dce..c5709f6 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/8.\345\206\205\351\203\250\345\207\275\346\225\260\345\222\214\345\244\226\351\203\250\345\207\275\346\225\260/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/8.\345\206\205\351\203\250\345\207\275\346\225\260\345\222\214\345\244\226\351\203\250\345\207\275\346\225\260/config.json" @@ -6,5 +6,8 @@ "C语言" ], "children": [], - "export": ["ex_in_function.json"] + "export": [ + "ex_in_function.json" + ], + "title": "内部函数和外部函数" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/config.json" index ebf9b48..5f3b389 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/1.\345\207\275\346\225\260\344\270\216\347\250\213\345\272\217\347\273\223\346\236\204/config.json" @@ -1,8 +1,9 @@ { - "node_id": "c-c1d5e45aeba9407a9aba96de5af95e4e", - "keywords": [ - "函数", - "程序结构", - "C语言" - ] + "node_id": "c-c1d5e45aeba9407a9aba96de5af95e4e", + "keywords": [ + "函数", + "程序结构", + "C语言" + ], + "title": "函数与程序结构" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/1.\346\225\260\347\273\204\347\256\200\344\273\213/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/1.\346\225\260\347\273\204\347\256\200\344\273\213/config.json" index 6eee376..b0c5576 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/1.\346\225\260\347\273\204\347\256\200\344\273\213/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/1.\346\225\260\347\273\204\347\256\200\344\273\213/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "array_def.json" - ] + ], + "title": "数组简介" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/2.\344\270\200\347\273\264\346\225\260\347\273\204/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/2.\344\270\200\347\273\264\346\225\260\347\273\204/config.json" index c72a4a5..cbf4c2c 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/2.\344\270\200\347\273\264\346\225\260\347\273\204/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/2.\344\270\200\347\273\264\346\225\260\347\273\204/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "bubble_sort.json" - ] + ], + "title": "一维数组" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/3.\344\272\214\347\273\264\346\225\260\347\273\204/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/3.\344\272\214\347\273\264\346\225\260\347\273\204/config.json" index 42eaa25..c6d2339 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/3.\344\272\214\347\273\264\346\225\260\347\273\204/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/3.\344\272\214\347\273\264\346\225\260\347\273\204/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "matrix.json" - ] + ], + "title": "二维数组" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/4.\345\217\230\351\225\277\346\225\260\347\273\204/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/4.\345\217\230\351\225\277\346\225\260\347\273\204/config.json" index 7e6e1a6..406a312 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/4.\345\217\230\351\225\277\346\225\260\347\273\204/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/4.\345\217\230\351\225\277\346\225\260\347\273\204/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "vla.json" - ] + ], + "title": "变长数组" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/config.json" index db635bf..d4e4bbd 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/2.\346\225\260\347\273\204/config.json" @@ -5,5 +5,6 @@ "C语言" ], "children": [], - "export": [] + "export": [], + "title": "数组" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/1.\346\214\207\351\222\210\344\270\216\345\234\260\345\235\200/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/1.\346\214\207\351\222\210\344\270\216\345\234\260\345\235\200/config.json" index 34f6c49..57933e5 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/1.\346\214\207\351\222\210\344\270\216\345\234\260\345\235\200/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/1.\346\214\207\351\222\210\344\270\216\345\234\260\345\235\200/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "pointers.json" - ] + ], + "title": "指针与地址" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/2.\346\214\207\351\222\210\344\270\216\345\207\275\346\225\260\345\217\202\346\225\260/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/2.\346\214\207\351\222\210\344\270\216\345\207\275\346\225\260\345\217\202\346\225\260/config.json" index 912aedc..0efbc7c 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/2.\346\214\207\351\222\210\344\270\216\345\207\275\346\225\260\345\217\202\346\225\260/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/2.\346\214\207\351\222\210\344\270\216\345\207\275\346\225\260\345\217\202\346\225\260/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "pointers_n_func.json" - ] + ], + "title": "指针与函数参数" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/3.\346\214\207\351\222\210\344\270\216\346\225\260\347\273\204/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/3.\346\214\207\351\222\210\344\270\216\346\225\260\347\273\204/config.json" index 8f35b8a..3526bf1 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/3.\346\214\207\351\222\210\344\270\216\346\225\260\347\273\204/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/3.\346\214\207\351\222\210\344\270\216\346\225\260\347\273\204/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "pointers_n_array.json" - ] + ], + "title": "指针与数组" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/4.\345\234\260\345\235\200\347\256\227\346\234\257\350\277\220\347\256\227/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/4.\345\234\260\345\235\200\347\256\227\346\234\257\350\277\220\347\256\227/config.json" index 1846e17..0609274 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/4.\345\234\260\345\235\200\347\256\227\346\234\257\350\277\220\347\256\227/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/4.\345\234\260\345\235\200\347\256\227\346\234\257\350\277\220\347\256\227/config.json" @@ -9,5 +9,6 @@ "children": [], "export": [ "pointers_arithmetic_op.json" - ] + ], + "title": "地址算术运算" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/5.\346\214\207\351\222\210\346\225\260\347\273\204\344\273\245\345\217\212\346\214\207\345\220\221\346\214\207\351\222\210\347\232\204\346\214\207\351\222\210/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/5.\346\214\207\351\222\210\346\225\260\347\273\204\344\273\245\345\217\212\346\214\207\345\220\221\346\214\207\351\222\210\347\232\204\346\214\207\351\222\210/config.json" index 37697df..0af4bf4 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/5.\346\214\207\351\222\210\346\225\260\347\273\204\344\273\245\345\217\212\346\214\207\345\220\221\346\214\207\351\222\210\347\232\204\346\214\207\351\222\210/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/5.\346\214\207\351\222\210\346\225\260\347\273\204\344\273\245\345\217\212\346\214\207\345\220\221\346\214\207\351\222\210\347\232\204\346\214\207\351\222\210/config.json" @@ -9,5 +9,6 @@ "children": [], "export": [ "pointers_array.json" - ] + ], + "title": "指针数组以及指向指针的指针" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/6.\346\214\207\345\220\221\345\207\275\346\225\260\347\232\204\346\214\207\351\222\210/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/6.\346\214\207\345\220\221\345\207\275\346\225\260\347\232\204\346\214\207\351\222\210/config.json" index b6ee24b..1344568 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/6.\346\214\207\345\220\221\345\207\275\346\225\260\347\232\204\346\214\207\351\222\210/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/6.\346\214\207\345\220\221\345\207\275\346\225\260\347\232\204\346\214\207\351\222\210/config.json" @@ -9,5 +9,6 @@ "children": [], "export": [ "pointers_2_func.json" - ] + ], + "title": "指向函数的指针" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/config.json" index d094da1..852aa2b 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/3.\346\214\207\351\222\210/config.json" @@ -5,5 +5,6 @@ "C语言" ], "children": [], - "export": [] + "export": [], + "title": "指针" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/4.\345\255\227\347\254\246\344\270\262/1.\345\255\227\347\254\246\344\270\262\350\276\223\345\205\245\344\270\216\350\276\223\345\207\272/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/4.\345\255\227\347\254\246\344\270\262/1.\345\255\227\347\254\246\344\270\262\350\276\223\345\205\245\344\270\216\350\276\223\345\207\272/config.json" index 5069dd8..6423fe3 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/4.\345\255\227\347\254\246\344\270\262/1.\345\255\227\347\254\246\344\270\262\350\276\223\345\205\245\344\270\216\350\276\223\345\207\272/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/4.\345\255\227\347\254\246\344\270\262/1.\345\255\227\347\254\246\344\270\262\350\276\223\345\205\245\344\270\216\350\276\223\345\207\272/config.json" @@ -11,5 +11,6 @@ "export": [ "string_io.json" ], - "node_id": "c-bbd1310e647846018a1ff37d29c70ff0" + "node_id": "c-bbd1310e647846018a1ff37d29c70ff0", + "title": "字符串输入与输出" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/4.\345\255\227\347\254\246\344\270\262/2.\345\255\227\347\254\246\344\270\262\345\207\275\346\225\260/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/4.\345\255\227\347\254\246\344\270\262/2.\345\255\227\347\254\246\344\270\262\345\207\275\346\225\260/config.json" index 0a71ef4..bbfd81c 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/4.\345\255\227\347\254\246\344\270\262/2.\345\255\227\347\254\246\344\270\262\345\207\275\346\225\260/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/4.\345\255\227\347\254\246\344\270\262/2.\345\255\227\347\254\246\344\270\262\345\207\275\346\225\260/config.json" @@ -8,5 +8,6 @@ "export": [ "string_func.json" ], - "node_id": "c-2aa6707a4e0244dfab606b030f5c35c9" + "node_id": "c-2aa6707a4e0244dfab606b030f5c35c9", + "title": "字符串函数" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/4.\345\255\227\347\254\246\344\270\262/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/4.\345\255\227\347\254\246\344\270\262/config.json" index 8f10c59..b06cf52 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/4.\345\255\227\347\254\246\344\270\262/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/4.\345\255\227\347\254\246\344\270\262/config.json" @@ -5,5 +5,6 @@ "C语言" ], "children": [], - "export": [] + "export": [], + "title": "字符串" } \ No newline at end of file diff --git "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/config.json" "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/config.json" index 2813280..19d56dd 100644 --- "a/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/config.json" +++ "b/data/2.C\350\257\255\350\250\200\344\270\255\351\230\266/config.json" @@ -1,4 +1,5 @@ { "node_id": "c-0b3c295f0ba24708845505ee4583303e", - "keywords": [] + "keywords": [], + "title": "C语言中阶" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/1.\347\273\223\346\236\204\344\275\223\347\256\200\344\273\213/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/1.\347\273\223\346\236\204\344\275\223\347\256\200\344\273\213/config.json" index 6bcb38d..4caf311 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/1.\347\273\223\346\236\204\344\275\223\347\256\200\344\273\213/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/1.\347\273\223\346\236\204\344\275\223\347\256\200\344\273\213/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "structures.json" - ] + ], + "title": "结构体简介" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/2.\347\273\223\346\236\204\344\275\223\346\225\260\347\273\204/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/2.\347\273\223\346\236\204\344\275\223\346\225\260\347\273\204/config.json" index 6af4285..1f2c923 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/2.\347\273\223\346\236\204\344\275\223\346\225\260\347\273\204/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/2.\347\273\223\346\236\204\344\275\223\346\225\260\347\273\204/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "structures_array.json" - ] + ], + "title": "结构体数组" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/3.\347\273\223\346\236\204\344\275\223\346\214\207\351\222\210/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/3.\347\273\223\346\236\204\344\275\223\346\214\207\351\222\210/config.json" index 5119bea..dd3c61a 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/3.\347\273\223\346\236\204\344\275\223\346\214\207\351\222\210/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/3.\347\273\223\346\236\204\344\275\223\346\214\207\351\222\210/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "structures_pointers.json" - ] + ], + "title": "结构体指针" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/4.\347\273\223\346\236\204\344\275\223\344\270\216\345\207\275\346\225\260/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/4.\347\273\223\346\236\204\344\275\223\344\270\216\345\207\275\346\225\260/config.json" index 8aecc51..801283c 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/4.\347\273\223\346\236\204\344\275\223\344\270\216\345\207\275\346\225\260/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/4.\347\273\223\346\236\204\344\275\223\344\270\216\345\207\275\346\225\260/config.json" @@ -9,5 +9,6 @@ "children": [], "export": [ "structures_n_func.json" - ] + ], + "title": "结构体与函数" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/5.\351\223\276\345\274\217\347\273\223\346\236\204/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/5.\351\223\276\345\274\217\347\273\223\346\236\204/config.json" index c8c46ad..7d9c535 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/5.\351\223\276\345\274\217\347\273\223\346\236\204/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/5.\351\223\276\345\274\217\347\273\223\346\236\204/config.json" @@ -9,5 +9,6 @@ "children": [], "export": [ "linked_list.json" - ] + ], + "title": "链式结构" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/config.json" index a136286..883e3d3 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/1.\347\273\223\346\236\204\344\275\223/config.json" @@ -1,7 +1,8 @@ { - "node_id": "c-457fbccd00ef4ce3b0f44702f9755b43", - "keywords": [ - "结构体", - "C语言" - ] + "node_id": "c-457fbccd00ef4ce3b0f44702f9755b43", + "keywords": [ + "结构体", + "C语言" + ], + "title": "结构体" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/2.\350\201\224\345\220\210\344\275\223\344\270\216\346\236\232\344\270\276\347\261\273\345\236\213/1.\350\201\224\345\220\210\344\275\223/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/2.\350\201\224\345\220\210\344\275\223\344\270\216\346\236\232\344\270\276\347\261\273\345\236\213/1.\350\201\224\345\220\210\344\275\223/config.json" index 2cb993a..2f22cf7 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/2.\350\201\224\345\220\210\344\275\223\344\270\216\346\236\232\344\270\276\347\261\273\345\236\213/1.\350\201\224\345\220\210\344\275\223/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/2.\350\201\224\345\220\210\344\275\223\344\270\216\346\236\232\344\270\276\347\261\273\345\236\213/1.\350\201\224\345\220\210\344\275\223/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "unions.json" - ] + ], + "title": "联合体" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/2.\350\201\224\345\220\210\344\275\223\344\270\216\346\236\232\344\270\276\347\261\273\345\236\213/2.\346\236\232\344\270\276\347\261\273\345\236\213/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/2.\350\201\224\345\220\210\344\275\223\344\270\216\346\236\232\344\270\276\347\261\273\345\236\213/2.\346\236\232\344\270\276\347\261\273\345\236\213/config.json" index 61f0587..44353be 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/2.\350\201\224\345\220\210\344\275\223\344\270\216\346\236\232\344\270\276\347\261\273\345\236\213/2.\346\236\232\344\270\276\347\261\273\345\236\213/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/2.\350\201\224\345\220\210\344\275\223\344\270\216\346\236\232\344\270\276\347\261\273\345\236\213/2.\346\236\232\344\270\276\347\261\273\345\236\213/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "enum.json" - ] + ], + "title": "枚举类型" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/2.\350\201\224\345\220\210\344\275\223\344\270\216\346\236\232\344\270\276\347\261\273\345\236\213/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/2.\350\201\224\345\220\210\344\275\223\344\270\216\346\236\232\344\270\276\347\261\273\345\236\213/config.json" index 503a6e8..59832cc 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/2.\350\201\224\345\220\210\344\275\223\344\270\216\346\236\232\344\270\276\347\261\273\345\236\213/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/2.\350\201\224\345\220\210\344\275\223\344\270\216\346\236\232\344\270\276\347\261\273\345\236\213/config.json" @@ -7,5 +7,6 @@ "C语言" ], "children": [], - "export": [] + "export": [], + "title": "联合体与枚举类型" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/1.\344\275\215\345\222\214\345\255\227\350\212\202/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/1.\344\275\215\345\222\214\345\255\227\350\212\202/config.json" index aa83b4a..f8aad47 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/1.\344\275\215\345\222\214\345\255\227\350\212\202/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/1.\344\275\215\345\222\214\345\255\227\350\212\202/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "check.json" - ] + ], + "title": "位和字节" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/2.\344\272\214\350\277\233\345\210\266/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/2.\344\272\214\350\277\233\345\210\266/config.json" index 651a38b..912a539 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/2.\344\272\214\350\277\233\345\210\266/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/2.\344\272\214\350\277\233\345\210\266/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "count.json" - ] + ], + "title": "二进制" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/3.\345\205\253\350\277\233\345\210\266/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/3.\345\205\253\350\277\233\345\210\266/config.json" index d4ca5b5..030b0d6 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/3.\345\205\253\350\277\233\345\210\266/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/3.\345\205\253\350\277\233\345\210\266/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "oct.json" - ] + ], + "title": "八进制" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/4.\345\215\201\345\205\255\350\277\233\345\210\266/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/4.\345\215\201\345\205\255\350\277\233\345\210\266/config.json" index a7777ad..8f477c7 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/4.\345\215\201\345\205\255\350\277\233\345\210\266/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/4.\345\215\201\345\205\255\350\277\233\345\210\266/config.json" @@ -7,6 +7,7 @@ ], "children": [], "export": [ - "bin_to_hex.json" - ] + "bin_to_hex.json" + ], + "title": "十六进制" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/5.\344\275\215\351\200\273\350\276\221\350\277\220\347\256\227\347\254\246/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/5.\344\275\215\351\200\273\350\276\221\350\277\220\347\256\227\347\254\246/config.json" index a005b84..622feda 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/5.\344\275\215\351\200\273\350\276\221\350\277\220\347\256\227\347\254\246/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/5.\344\275\215\351\200\273\350\276\221\350\277\220\347\256\227\347\254\246/config.json" @@ -7,6 +7,7 @@ ], "children": [], "export": [ - "bit_op.json" - ] + "bit_op.json" + ], + "title": "位逻辑运算符" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/6.\345\257\271\351\275\220\347\211\271\346\200\247/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/6.\345\257\271\351\275\220\347\211\271\346\200\247/config.json" index 27ecb77..23f9d35 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/6.\345\257\271\351\275\220\347\211\271\346\200\247/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/6.\345\257\271\351\275\220\347\211\271\346\200\247/config.json" @@ -7,7 +7,8 @@ ], "children": [], "export": [ - "pack01.json", - "pack02.json" - ] + "pack01.json", + "pack02.json" + ], + "title": "对齐特性" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/7.\344\275\215\345\255\227\346\256\265/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/7.\344\275\215\345\255\227\346\256\265/config.json" index 07e7e50..7349b7a 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/7.\344\275\215\345\255\227\346\256\265/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/7.\344\275\215\345\255\227\346\256\265/config.json" @@ -6,6 +6,7 @@ ], "children": [], "export": [ - "bit_field.json" - ] + "bit_field.json" + ], + "title": "位字段" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/config.json" index a855e13..8fbd805 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/3.\344\275\215\350\277\220\347\256\227/config.json" @@ -6,5 +6,6 @@ "C语言" ], "children": [], - "export": [] + "export": [], + "title": "位运算" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/1.\345\256\217\345\256\232\344\271\211/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/1.\345\256\217\345\256\232\344\271\211/config.json" index 84958db..257863e 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/1.\345\256\217\345\256\232\344\271\211/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/1.\345\256\217\345\256\232\344\271\211/config.json" @@ -10,5 +10,6 @@ "define_func_1.json", "define_func_2.json", "define_func_3.json" - ] + ], + "title": "宏定义" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/2.#include\346\214\207\344\273\244/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/2.#include\346\214\207\344\273\244/config.json" index 9751e03..daec948 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/2.#include\346\214\207\344\273\244/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/2.#include\346\214\207\344\273\244/config.json" @@ -9,5 +9,6 @@ "export": [ "calc.json", "calc_test.json" - ] + ], + "title": "#include指令" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/3.#undef\346\214\207\344\273\244/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/3.#undef\346\214\207\344\273\244/config.json" index 16d25a0..786483b 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/3.#undef\346\214\207\344\273\244/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/3.#undef\346\214\207\344\273\244/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "undef.json" - ] + ], + "title": "#undef指令" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/4.\346\235\241\344\273\266\347\274\226\350\257\221/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/4.\346\235\241\344\273\266\347\274\226\350\257\221/config.json" index bb3dc7d..d6362dd 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/4.\346\235\241\344\273\266\347\274\226\350\257\221/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/4.\346\235\241\344\273\266\347\274\226\350\257\221/config.json" @@ -9,5 +9,6 @@ "export": [ "ifdef01.json", "ifdef02.json" - ] + ], + "title": "条件编译" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/5.\345\206\205\350\201\224\345\207\275\346\225\260/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/5.\345\206\205\350\201\224\345\207\275\346\225\260/config.json" index 0536a87..54c633a 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/5.\345\206\205\350\201\224\345\207\275\346\225\260/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/5.\345\206\205\350\201\224\345\207\275\346\225\260/config.json" @@ -7,5 +7,6 @@ "children": [], "export": [ "inline01.json" - ] + ], + "title": "内联函数" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/config.json" index dc31c65..eb66261 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/4.\351\242\204\345\244\204\347\220\206\345\231\250/config.json" @@ -6,5 +6,6 @@ "C语言" ], "children": [], - "export": [] + "export": [], + "title": "预处理器" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/5.\346\226\207\344\273\266/1.\346\226\207\344\273\266\347\232\204\345\237\272\346\234\254\346\223\215\344\275\234/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/5.\346\226\207\344\273\266/1.\346\226\207\344\273\266\347\232\204\345\237\272\346\234\254\346\223\215\344\275\234/config.json" index d186a75..4549075 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/5.\346\226\207\344\273\266/1.\346\226\207\344\273\266\347\232\204\345\237\272\346\234\254\346\223\215\344\275\234/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/5.\346\226\207\344\273\266/1.\346\226\207\344\273\266\347\232\204\345\237\272\346\234\254\346\223\215\344\275\234/config.json" @@ -39,5 +39,6 @@ } } ], - "export": [] + "export": [], + "title": "文件的基本操作" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/5.\346\226\207\344\273\266/2.\346\226\207\344\273\266\347\232\204\350\257\273\345\206\231/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/5.\346\226\207\344\273\266/2.\346\226\207\344\273\266\347\232\204\350\257\273\345\206\231/config.json" index 67eea7f..40a1ff4 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/5.\346\226\207\344\273\266/2.\346\226\207\344\273\266\347\232\204\350\257\273\345\206\231/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/5.\346\226\207\344\273\266/2.\346\226\207\344\273\266\347\232\204\350\257\273\345\206\231/config.json" @@ -8,5 +8,6 @@ "children": [], "export": [ "file_hash.json" - ] + ], + "title": "文件的读写" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/5.\346\226\207\344\273\266/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/5.\346\226\207\344\273\266/config.json" index 970a210..8fd5f26 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/5.\346\226\207\344\273\266/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/5.\346\226\207\344\273\266/config.json" @@ -5,5 +5,6 @@ "C语言" ], "children": [], - "export": [] + "export": [], + "title": "文件" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/6.\345\255\230\345\202\250\347\256\241\347\220\206/1.\345\255\230\345\202\250\347\261\273\345\210\253/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/6.\345\255\230\345\202\250\347\256\241\347\220\206/1.\345\255\230\345\202\250\347\261\273\345\210\253/config.json" index 6e8994b..e76c798 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/6.\345\255\230\345\202\250\347\256\241\347\220\206/1.\345\255\230\345\202\250\347\261\273\345\210\253/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/6.\345\255\230\345\202\250\347\256\241\347\220\206/1.\345\255\230\345\202\250\347\261\273\345\210\253/config.json" @@ -5,5 +5,8 @@ "C语言" ], "children": [], - "export": ["storage_categories.json"] + "export": [ + "storage_categories.json" + ], + "title": "存储类别" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/6.\345\255\230\345\202\250\347\256\241\347\220\206/2.\345\206\205\345\255\230\345\212\250\346\200\201\347\256\241\347\220\206/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/6.\345\255\230\345\202\250\347\256\241\347\220\206/2.\345\206\205\345\255\230\345\212\250\346\200\201\347\256\241\347\220\206/config.json" index c4ce287..d638abb 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/6.\345\255\230\345\202\250\347\256\241\347\220\206/2.\345\206\205\345\255\230\345\212\250\346\200\201\347\256\241\347\220\206/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/6.\345\255\230\345\202\250\347\256\241\347\220\206/2.\345\206\205\345\255\230\345\212\250\346\200\201\347\256\241\347\220\206/config.json" @@ -1,36 +1,37 @@ { - "node_id": "c-e75bdc3470954cb38bdfcf4f0ed3680b", - "keywords": [ - "存储管理", - "内存管理", - "内存动态管理", - "C语言" - ], - "children": [ - { - "内存分配:malloc()": { - "keywords": [ - "内存分配", - "malloc", - "C语言" - ], - "children": [], - "node_id": "c-cc8211e14d6f46c8b91b27f4b5ae2c3a" - } - }, - { - "内存释放:free()": { - "keywords": [ - "内存释放", - "free", - "C语言" - ], - "children": [], - "node_id": "c-3ef9cac7dde7450cba53d20005fefe77" - } - } - ], - "export": [ - "memory_management.json" - ] + "node_id": "c-e75bdc3470954cb38bdfcf4f0ed3680b", + "keywords": [ + "存储管理", + "内存管理", + "内存动态管理", + "C语言" + ], + "children": [ + { + "内存分配:malloc()": { + "keywords": [ + "内存分配", + "malloc", + "C语言" + ], + "children": [], + "node_id": "c-cc8211e14d6f46c8b91b27f4b5ae2c3a" + } + }, + { + "内存释放:free()": { + "keywords": [ + "内存释放", + "free", + "C语言" + ], + "children": [], + "node_id": "c-3ef9cac7dde7450cba53d20005fefe77" + } + } + ], + "export": [ + "memory_management.json" + ], + "title": "内存动态管理" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/6.\345\255\230\345\202\250\347\256\241\347\220\206/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/6.\345\255\230\345\202\250\347\256\241\347\220\206/config.json" index bf70513..30a71b9 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/6.\345\255\230\345\202\250\347\256\241\347\220\206/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/6.\345\255\230\345\202\250\347\256\241\347\220\206/config.json" @@ -6,5 +6,6 @@ "C语言" ], "children": [], - "export": [] + "export": [], + "title": "存储管理" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/1.\346\225\260\345\255\246\345\272\223/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/1.\346\225\260\345\255\246\345\272\223/config.json" index 9fef7e1..e61314f 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/1.\346\225\260\345\255\246\345\272\223/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/1.\346\225\260\345\255\246\345\272\223/config.json" @@ -1,13 +1,14 @@ { - "node_id": "c-77363abd916c4981b595f44138f53e0a", - "keywords": [ - "数学库", - "math.h", - "标准库", - "C语言" - ], - "children": [], - "export": [ - "math.json" - ] + "node_id": "c-77363abd916c4981b595f44138f53e0a", + "keywords": [ + "数学库", + "math.h", + "标准库", + "C语言" + ], + "children": [], + "export": [ + "math.json" + ], + "title": "数学库" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/2.\351\200\232\347\224\250\345\267\245\345\205\267\345\272\223/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/2.\351\200\232\347\224\250\345\267\245\345\205\267\345\272\223/config.json" index d6d32dc..cc01458 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/2.\351\200\232\347\224\250\345\267\245\345\205\267\345\272\223/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/2.\351\200\232\347\224\250\345\267\245\345\205\267\345\272\223/config.json" @@ -7,5 +7,8 @@ "C语言" ], "children": [], - "export": ["qsort.json"] + "export": [ + "qsort.json" + ], + "title": "通用工具库" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/3.\346\226\255\350\250\200\345\272\223/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/3.\346\226\255\350\250\200\345\272\223/config.json" index f8eda67..46e5e33 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/3.\346\226\255\350\250\200\345\272\223/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/3.\346\226\255\350\250\200\345\272\223/config.json" @@ -9,5 +9,6 @@ "children": [], "export": [ "assert.json" - ] + ], + "title": "断言库" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/config.json" index 17d117f..84dd5f9 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/7.\346\240\207\345\207\206\345\207\275\346\225\260\345\272\223/config.json" @@ -6,5 +6,6 @@ "C语言" ], "children": [], - "export": [] + "export": [], + "title": "标准函数库" } \ No newline at end of file diff --git "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/config.json" "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/config.json" index 5d760ef..f51af2d 100644 --- "a/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/config.json" +++ "b/data/3.C\350\257\255\350\250\200\351\253\230\351\230\266/config.json" @@ -1,4 +1,5 @@ { "node_id": "c-29426c5de15a472ba147b32bd24b73a5", - "keywords": [] + "keywords": [], + "title": "C语言高阶" } \ No newline at end of file diff --git a/data/config.json b/data/config.json index e1b0f31..b2f5f99 100644 --- a/data/config.json +++ b/data/config.json @@ -1,5 +1,6 @@ { "tree_name": "C", "keywords": [], - "node_id": "c-569d5e11c4fc5de7844053d9a733c5e8" + "node_id": "c-569d5e11c4fc5de7844053d9a733c5e8", + "title": "C" } \ No newline at end of file diff --git a/src/tree.py b/src/tree.py index ec68278..461e4d6 100644 --- a/src/tree.py +++ b/src/tree.py @@ -68,6 +68,7 @@ def gen_tree(data_path): def ensure_id_helper(node): flag = False + if (node.get('node_id') is None) or node.get('node_id') in id_set: node['node_id'] = gen_node_id() flag = True @@ -83,6 +84,25 @@ def gen_tree(data_path): def ensure_node_id(cfg): return ensure_id_helper(cfg) + def ensure_title_helper(node, cfg_path, title=""): + flag = False + + if node.get('title') is None: + if cfg_path: + node['title'] = re.sub("^[0-9]{1,3}\.", "", os.path.split(os.path.dirname(cfg_path))[-1]) + else: + node['title'] = title + flag = True + + if 'children' in node: + for c in node["children"]: + flag = flag or ensure_title_helper(list(c.values())[0], None, list(c.keys())[0]) + + return flag + + def ensure_title(cfg, cfg_path): + return ensure_title_helper(cfg, cfg_path) + def make_node(name, node_id, keywords, children=None): node = {} node_children = children or [] @@ -98,6 +118,10 @@ def gen_tree(data_path): cfg = load_json(cfg_path) if ensure_node_id(cfg): dump_json(cfg_path, cfg) + + if ensure_title(cfg, cfg_path): + cfg["title"] = "C" + dump_json(cfg_path, cfg, exist_ok=True, override=True) tree_node = { "node_id": cfg['node_id'], "keywords": cfg['keywords'], @@ -113,6 +137,8 @@ def gen_tree(data_path): level_cfg = load_json(level_path) if ensure_node_id(level_cfg) or check_export(level_no_dir, level_cfg): dump_json(level_path, level_cfg, exist_ok=True, override=True) + if ensure_title(level_cfg, level_path): + dump_json(level_path, level_cfg, exist_ok=True, override=True) level_node, level_node_children = make_node( level_name, level_cfg['node_id'], level_cfg['keywords']) @@ -125,6 +151,8 @@ def gen_tree(data_path): chapter_cfg = load_json(chapter_path) if ensure_node_id(chapter_cfg) or check_export(chapter_no_dir, chapter_cfg): dump_json(chapter_path, chapter_cfg, exist_ok=True, override=True) + if ensure_title(chapter_cfg, chapter_path): + dump_json(chapter_path, chapter_cfg, exist_ok=True, override=True) chapter_node, chapter_node_children = make_node( chapter_name, chapter_cfg['node_id'], chapter_cfg['keywords']) @@ -156,6 +184,9 @@ def gen_tree(data_path): if flag: dump_json(sec_path, sec_cfg, exist_ok=True, override=True) + if ensure_title(sec_cfg, sec_path): + dump_json(sec_path, sec_cfg, exist_ok=True, override=True) + # 保存技能树骨架 tree_path = os.path.join(data_path, 'tree.json') dump_json(tree_path, root, exist_ok=True, override=True) -- GitLab