文章目錄
- 資源網站:https://www.ituring.com.cn/book/3038
- 配置VSCode
- 推薦資源網站
- 推薦資源網址
資源網站:https://www.ituring.com.cn/book/3038
配置VSCode
推薦資源網站
推薦資源網址
英文版主頁: https://ehmatthes.github.io/pcc_3e
中文版主頁: https://www.ituring.com.cn/book/3038
第 1章
- Python官方網站主頁: https://python.org
- Visual Studio Code官方網站主頁: https://code.visualstudio.com
第 4章
- PEP 8格式設置指南: https://python.org/dev/peps/pep-0008
第 9章
- Python 3 Module of the Week: https://pymotw.com/3/
第 10章
- 古登堡計劃: https://gutenberg.org
第 12章
- OpenGameArt: https://opengameart.org/
- Pygame文檔: https://pygame.org/docs
第 15章
- 使用 Matplotlib可制作的各種圖形: https://matplotlib.org/stable/plot_types/index.html
- pyplot 中所有的顏色映射: https://matplotlib.org/stable/tutorials/colors/colormaps.html#sphx-glr-tutorials-colors-colormaps-py
- 使用 Plotly可創建的圖形: https://plotly.com/python/
- 完整的圖形類型清單: https://plotly.com/python/plotly-express
第 17章
- GitHub: https://github.com
- 文章 Plotly Express in Python: https://plotly.com/python/plotly-express
- 文章 Styling Plotly Express Figures in Python: https://plotly.com/python/styling-plotly-express
- GitHub API的文檔: https://docs.github.com/en/rest
- Hacker News: http://news.ycombinator.com/
- 通過 Hacker News API可訪問哪些信息: https://github.com/HackerNews/API/
- 如果你還想探索其他 API,可看看 GitHub倉庫 https://github.com/public-apis提及的 API。
第 18章
- Django Model Field Reference ( Django模型字段參考 ) : https://docs.djangoproject.com/en/4.1/ref/models/fields
- 有關如何查詢數據的文檔 Making queries: https://docs.djangoproject.com/en/4.1/topics/db/queries
第 20章
- Bootstrap提供的模板: https://getbootstrap.com/docs/5.3/examples/
- 了解 Bootstrap提供了哪些功能: https://getbootstrap.com/docs/5.3/getting-started/introduction/
- 注冊 Platform.sh賬戶: https://auth.api.platform.sh/register?trial_type=general
- Platform.sh對免費試用服務的最新限制: https://platform.sh/free-trial
- 安裝 Platform.sh CLI的最新版本: https://docs.platform.sh/development/cli.html
- XAMPP安裝程序: https://apachefriends.org
- 有關 Platform.sh支持的 Python版本列表: https://docs.platform.sh/languages/python.html
- 登錄 Platform.sh網站,并訪問你的儀表盤: https://console.platform.sh
附錄 A
- Python網站: https://python.org
附錄 C
- Stack Overflow: https://stackoverflow.com
- 文章 How do I Ask a Good Question?: https://stackoverflow.com/help/how-to-ask
- Python官方文檔: https://docs.python.org
- Django官方文檔: https://docs.djangoproject.com/
附錄 E
- Git 的官方網站: https://git-scm.com
- explainshell: https://explainshell.com
- WSL 的相關文檔 (What is the Windows Subsystem for Linux?): https://docs.microsoft.com/en-us/windows/wsl/about
- XAMPP 官方網站: https://apachefriends.org
- Homebrew 官方網站: https://brew.sh
推薦資源網址
天氣數據(16.1節)
如果你想自己下載天氣數據,可采取如下步驟:
-
訪問網站 NOAA Climate Data Online(https://www.ncdc.noaa.gov/cdo-web)。在 Discover Data By 部分單擊 Search Tool,在下拉列表 Select a Dataset 中選擇 Daily Summaries。
-
選擇一個日期范圍,在 Search For 下拉列表中選擇 ZIP Codes,輸入你感興趣地區的郵政編碼,再單擊 Search 按鈕。
-
在下一個頁面中,你將看到指定地區的地圖和相關信息。單擊地區名下方的 View Full Details 或先單擊地圖再單擊 Full Details。
-
向下滾動并單擊 Station List,以顯示該地區的氣象站,再選擇一個氣象站并單擊 Add to Cart。雖然這個網站使用了購物車圖標,但提供的數據是免費的。單擊右上角的購物車。
-
在 Select the Output Format 中選擇 Custom GHCN-Daily CSV。確認日期范圍正確無誤后單擊 Continue。
-
在下一個頁面中,可選擇要下載的數據類型。可只下載一種數據(如氣溫),也可下載該氣象站提供的所有數據。做出選擇后單擊 Continue.
-
在最后一個頁面,你將看到訂單小結。請輸入你的電子郵箱地址,再單擊 Submit Order。你將收到一封確認郵件,指出收到了你的訂單。幾分鐘后,你將收到另一封郵件,其中包含用于下載數據的鏈接。
你下載的數據與16.1節處理的數據有類似的結構,但包含的文件頭可能不同。然而,只要按本節介紹的步驟做,就能對你感興趣的數據進行可視化。
地震數據(練習 16.8)
請訪問 https://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php。對于最近1小時、1天、7天和30天的每個時段,都有一個鏈接列表,其中的鏈接指向包含不同震級以上地震的數據集。
火災數據(練習 16.9)
要下載最新的數據,請訪問 https://www.earthdata.nasa.gov/learn/find-data/near-real-time/firms/active-fire-data。在其中的 SHP, KML and TXT Files 部分,有下載 CSV 格式數據的鏈接。