File size: 3,372 Bytes
1fda7a0
 
 
 
aaea504
 
1fda7a0
 
 
 
 
 
 
 
 
 
 
 
 
 
aaea504
 
1fda7a0
 
 
 
aaea504
 
1fda7a0
 
 
 
aaea504
 
1fda7a0
 
 
 
aaea504
 
1fda7a0
 
 
 
aaea504
 
1fda7a0
 
 
 
aaea504
 
1fda7a0
 
 
 
aaea504
 
1fda7a0
 
 
 
 
 
aaea504
 
 
 
 
 
 
 
 
1fda7a0
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
  "id": "python_basics",
  "title": "Python 程式設計基礎",
  "nodes": {
    "python_basics_1": {
      "id": "python_basics_1",
      "title": "Python 基礎",
      "content": "Python 是一種高級程式語言,特點是易讀易寫,廣泛應用於網站開發、資料分析、人工智慧等領域。Python 強調代碼的可讀性,其語法簡潔優雅,是初學者的理想選擇。",
      "type": "concept",
      "resources": [
        {
          "type": "documentation",
          "url": "https://docs.python.org/zh-tw/3/"
        },
        {
          "type": "tutorial",
          "url": "https://www.learnpython.org/"
        }
      ]
    },
    "python_basics_2": {
      "id": "python_basics_2",
      "title": "變數與資料型別",
      "content": "Python 中的基本資料型別包括:整數(int)、浮點數(float)、字串(str)、布林值(bool)等。變數是用來儲存資料的容器,在 Python 中不需要事先宣告型別。",
      "type": "concept"
    },
    "python_basics_3": {
      "id": "python_basics_3",
      "title": "流程控制",
      "content": "包括 if-else 條件判斷、for 和 while 迴圈等控制結構。這些語句用於控制程式的執行流程,實現不同的邏輯功能。",
      "type": "concept"
    },
    "python_basics_4": {
      "id": "python_basics_4",
      "title": "函數",
      "content": "函數是可重複使用的程式碼區塊,可以接收參數並返回結果。Python 中使用 def 關鍵字定義函數。",
      "type": "concept"
    },
    "python_basics_5": {
      "id": "python_basics_5",
      "title": "列表操作",
      "content": "Python 列表(list)是最常用的資料結構之一,可以儲存多個不同型別的元素,並支持增刪改查等操作。",
      "type": "concept"
    },
    "python_basics_6": {
      "id": "python_basics_6",
      "title": "字典操作",
      "content": "字典(dict)是鍵值對的集合,每個鍵都必須是唯一的。字典提供了高效的查找和修改操作。",
      "type": "concept"
    },
    "python_basics_7": {
      "id": "python_basics_7",
      "title": "檔案處理",
      "content": "Python 提供了簡單的檔案讀寫操作,包括文字檔和二進制檔案的處理。常用的函數有 open()、read()、write() 等。",
      "type": "concept"
    },
    "python_basics_8": {
      "id": "python_basics_8",
      "title": "例外處理",
      "content": "使用 try-except 來處理程式執行時可能發生的錯誤,確保程式的穩定性和可靠性。",
      "type": "concept"
    }
  },
  "edges": [
    {"source": "python_basics_1", "target": "python_basics_2", "type": "basic"},
    {"source": "python_basics_1", "target": "python_basics_3", "type": "basic"},
    {"source": "python_basics_1", "target": "python_basics_4", "type": "basic"},
    {"source": "python_basics_2", "target": "python_basics_5", "type": "related"},
    {"source": "python_basics_2", "target": "python_basics_6", "type": "related"},
    {"source": "python_basics_3", "target": "python_basics_8", "type": "advanced"},
    {"source": "python_basics_4", "target": "python_basics_7", "type": "advanced"},
    {"source": "python_basics_5", "target": "python_basics_6", "type": "related"},
    {"source": "python_basics_7", "target": "python_basics_8", "type": "related"}
  ]
}