2015 計算機程式乙班 W7 示範

CP 一乙連結:

40023215 40123157 40123210 40123254 40223252 40423201 40423202 40423203 40423204 40423205 40423206 40423207 40423208 40423209 40423210 40423211 40423212 40423213 40423214 40423215 40423216 40423217 40423218 40423219 40423220 40423221 40423222 40423223 40423224 40423225 40423226 40423227 40423228 40423229 40423230 40423231 40423232 40423233 40423234 40423235 40423236 40423237 40423238 40423239 40423240 40423241 40423242 40423243 40423244 40423245 40423246 40423247 40423248 40423249 40423250 40423251 40423252 40423253 40423254

在節點內文中的程式:

 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
@language python
'''
寫在節點內文, 然後按下 Ctrl+b 可以執行
'''
lines = open("cpb.txt", "r", encoding="utf-8").read().splitlines()
for i in range(len(lines)):
    g.es("<a href='user/"+lines[i]+"/'>"+lines[i]+"</a>")

'''
cpb.txt 檔案內容

40023215
40123157
40123210
40123254
40223252
40423201
40423202
40423203
40423204
40423205
40423206
40423207
40423208
40423209
40423210
40423211
40423212
40423213
40423214
40423215
40423216
40423217
40423218
40423219
40423220
40423221
40423222
40423223
40423224
40423225
40423226
40423227
40423228
40423229
40423230
40423231
40423232
40423233
40423234
40423235
40423236
40423237
40423238
40423239
40423240
40423241
40423242
40423243
40423244
40423245
40423246
40423247
40423248
40423249
40423250
40423251
40423252
40423253
40423254
'''