1 of 8

Python 程式設計入門

網路連線、公開資料串接

2 of 8

網路連線

3 of 8

載入模組

import urllib.request

4 of 8

下載特定網址資料

import urllib.request as requestwith request.urlopen(網址) as response:� data=response.read()�print(data)

5 of 8

公開資料

6 of 8

適合的資料來源

7 of 8

確認資料格式

JSON、CSV、或其他格式

8 of 8

解讀 JSON 格式

使用內建的 json 模組