Skip to Content
Python 技術手冊 第三版
book

Python 技術手冊 第三版

by lex Martelli, Anna Martelli Ravenscroft, Steve Holden
January 2018
Intermediate to advanced content levelIntermediate to advanced
856 pages
17h 17m
Chinese
GoTop Information, Inc.
Content preview from Python 技術手冊 第三版
43
3
Python 語言
本章是 Python 語言的入門導引。要從頭開始學習 Python,我們建議你先從
https://www.python.org/about/gettingstarted/
上適當的連結著手,依據你是程
式設計初學者或已有一些程式設計經驗來進行選擇。如果你已經熟知其他
程式語言,只是想要學習 Python 特定的知識,那本章就是專為你設計的。
然而,我們並非要進行 Python 教學:我們會以相當快的步調涵蓋很多東
西。我們把主要重點放在規則(rules),其次才會點出一些最佳實務做法
best practices)和程式風格(style)。至於你的 Python 風格指南(style
guide),就選擇 PEP 8
https://www.python.org/dev/peps/pep-0008/
),還可
以選擇性地參考其他指南,例如 The Hitchhiker
s Guide 的(
http://docs.
python-guide.org/en/latest/writing/style/
)、 CKAN 的(
http://docs.ckan.org/
en/latest/contributing/python.html
)或是Google 的(
https://google.github.io/
styleguide/pyguide.html
)。
語彙結構
程式語言的
語彙結構
lexical structure
是規範你如何以該語言撰寫程式
的一組基本規則。它是程式語言最低階的語法 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

測試驅動開發|使用 Python

測試驅動開發|使用 Python

Harry J.W. Percival
Linux 内核观测技术BPF

Linux 内核观测技术BPF

David Calavera, Lorenzo Fontana

Publisher Resources

ISBN: 9789864766819