商品描述
You’ve learned the basics of Python, but how do you take your skills to the next stage? Even if you know enough to be productive, there are a number of features that can take you to the next level in Python. Pro Python, Second Edition explores concepts and features normally left to experimentation, allowing you to be even more productive and creative.
In addition to pure code concerns, Pro Python develops your programming techniques and approaches, which will help make you a better Python programmer. This book will improve not only your code but also your understanding and interaction with the many established Python communities.
This book takes your Python knowledge and coding skills to the next level. It shows you how to write clean, innovative code that will be respected by your peers. With this book, make your code do more with introspection and meta-programming. And learn and later use the nuts and bolts of an application, tier-by-tier as a complex case study along the way.
For more information, including a link to the source code referenced in the book, please visit http://propython.com/.
What youll learn
- Write strong Python code that will be respected in the Python community
- Understand the reasons behind big design decisions in Python
- Write programs that can reconfigure themselves in Python
- Disguise your code as different types of objects in Python
- Inspect just about any object in Python
- Prepare your code for international audiences
- Ensure code quality with rigorous testing
Who this book is for
This book is for intermediate to advanced Python programmers who are looking to understand how and why Python works the way it does and how they can take their code to the next level.
Table of Contents
1. Principles and Philosophy2. Advanced Basics
3. Functions
4. Classes
5. Common Protocols
6. Object Management
7. Strings
8. Documentation
9. Testing
10. Distribution
11. Sheets: A CSV Framework
12. Style Guide for Python
13. Voting Guidelines
14. The Zen of Python
15. Docstring Conventions
16. Backward Compatibility Policy
17. Python 3000
18. Python Language Moratorium
商品描述(中文翻譯)
您已經學會了 Python 的基本知識,但如何將您的技能提升到下一個階段呢?即使您已經掌握了足夠的知識以提高生產力,仍有許多功能可以幫助您在 Python 中更進一步。《Pro Python, Second Edition》探討了通常留給實驗的概念和特性,讓您能夠更加高效和富有創意。
除了純粹的程式碼問題外,《Pro Python》還發展了您的程式設計技術和方法,這將幫助您成為更好的 Python 程式設計師。本書不僅會改善您的程式碼,還會增進您對許多已建立的 Python 社群的理解和互動。
本書將您的 Python 知識和編碼技能提升到新的層次。它教您如何編寫乾淨、創新的程式碼,讓您的同儕尊重。透過本書,讓您的程式碼利用自省和元程式設計做更多事情。並學習並隨後使用應用程式的基本構造,逐層深入,作為一個複雜的案例研究。
欲了解更多資訊,包括書中提到的源代碼連結,請訪問 http://propython.com/。
您將學到的內容:
- 編寫在 Python 社群中受到尊重的強大 Python 程式碼
- 理解 Python 中重大設計決策背後的原因
- 編寫可以自我重新配置的 Python 程式
- 將您的程式碼偽裝成不同類型的物件
- 檢查幾乎任何 Python 物件
- 為國際觀眾準備您的程式碼
- 透過嚴格測試確保程式碼質量
本書適合對象:
本書適合中級到高級的 Python 程式設計師,他們希望理解 Python 為何如此運作以及如何將自己的程式碼提升到更高的層次。
目錄:
1. 原則與哲學
2. 進階基礎
3. 函數
4. 類別
5. 常見協議
6. 物件管理
7. 字串
8. 文件
9. 測試
10. 發行
11. 表格:CSV 框架
12. Python 風格指南
13. 投票指南
14. Python 的禪
15. 文檔字串慣例
16. 向後相容性政策
17. Python 3000
18. Python 語言暫停令