Treading on Python Volume 2: Intermediate Python
Matt Harrison
- 出版商: CreateSpace Independ
- 出版日期: 2013-06-26
- 售價: $1,000
- 貴賓價: 9.5 折 $950
- 語言: 英文
- 頁數: 162
- 裝訂: Paperback
- ISBN: 149055095X
- ISBN-13: 9781490550954
-
相關分類:
Python、程式語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
Do you want to take your Python to the next level?
Python is easy to learn. You can learn the basics in a day and be productive with it. But there are more advanced constructs that you will eventually run across if you spend enough time with it. Don't be confused by these. Learn them, embrace them, and improve your code and others.
Combines Three Guides into one Book
This book is composed of three popular guides:
- Guide to: Functional Python & Comprehension Constructs
- Guide to: Learning Iteration & Generators in Python
- Guide to: Learning Python Decorators
Write Python code like the masters
These constructs, while not necessary per se, allow you to be more succinct, re-use code, and think about code in a different way. You will learn:
- How the constructs work
- When to use them
- Real life examples from the standard library
This book covers many of these intermediate constructs that are available in Python. The book covers both Python 2 and 3. Topics include:
- Functional programming
- List comprehensions
- Generator expressions
- Set & dict comprehensions
- Iteration
- Generators
- Closures
- Decorators
I have taught material similar to these constructs at popular tutorials at conferences such as PyCon, OSCON and Strata (and other conferences). This book is based on my experience teaching and using Python for many years. I hope you learn something while in the course of your reading. Maybe it will help you in your next task, code review, or job interview.
商品描述(中文翻譯)
你想將你的 Python 技能提升到更高的層次嗎?
Python 容易學習。你可以在一天內學會基礎知識並開始有效地使用它。但如果你花足夠的時間與之相處,你最終會遇到一些更高級的結構。不要被這些困惑。學習它們,接受它們,並改善你的程式碼和他人的程式碼。
將三本指南合併成一本書
這本書由三本受歡迎的指南組成:
- 功能性 Python 和理解結構指南
- 在 Python 中學習迭代和生成器的指南
- 學習 Python 裝飾器的指南
像大師一樣編寫 Python 程式碼
這些結構雖然不一定是必需的,但可以讓你更簡潔地編寫程式碼,重用程式碼,並以不同的方式思考程式碼。你將學到:
- 這些結構如何運作
- 何時使用它們
- 來自標準庫的實際範例
理解他人的程式碼
這本書涵蓋了許多在 Python 中可用的中級結構。這本書涵蓋了 Python 2 和 3。主題包括:
- 功能性程式設計
- 列表推導式
- 生成器表達式
- 集合和字典推導式
- 迭代
- 生成器
- 閉包
- 裝飾器
基於受歡迎的教程和課程
我在 PyCon、OSCON 和 Strata(以及其他會議)等受歡迎的教程中教授過類似的內容。這本書基於我多年來教授和使用 Python 的經驗。我希望你在閱讀過程中能學到一些東西,也許這會幫助你在下一個任務、程式碼審查或工作面試中。