此商品已下架,若仍需天瓏代為查詢或代購書籍,請與門市客服人員聯繫,或 E-mail 至 service@tenlong.com.tw 將有專人為您服務。

Effective Python: 59 Specific Ways to Write Better Python (Paperback)
暫譯: 有效的 Python:59 種具體方法提升 Python 程式碼品質 (平裝本)

Brett Slatkin

買這商品的人也買了...

商品描述

It's easy to start writing code with Python: that's why the language is so immensely popular. However, Python has unique strengths, charms, and expressivity that can be hard to grasp at first -- as well as hidden pitfalls that can easily trip you up if you aren't aware of them. Effective Python will help you harness the full power of Python to write exceptionally robust, efficient, maintainable, and well-performing code. Utilizing the concise, scenario-driven style pioneered in Scott Meyers's best-selling Effective C++, Brett Slatkin brings together 59 Python best practices, tips, shortcuts, and realistic code examples from expert programmers.

Through realistic examples, Slatkin uncovers little-known Python quirks, intricacies, and idioms that powerfully impact code behavior and performance. You'll learn how to choose the most efficient and effective way to accomplish key tasks when multiple options exist, and how to write code that's easier to understand, maintain, and improve.

Drawing on his deep understanding of Python's capabilities, Slatkin offers practical advice for each major area of development with both Python 3.x and Python 2.x. Coverage includes:

  • Algorithms
  • Objects
  • Concurrency
  • Collaboration
  • Built-in modules
  • Production techniques
  • And more

Each section contains specific, actionable guidelines organized into items, each with carefully worded advice supported by detailed technical arguments and illuminating examples. Using Effective Python, you can systematically improve all the Python code you write: not by blindly following rules or mimicking incomprehensible idioms, but by gaining a deep understanding of the technical reasons why they make sense.

商品描述(中文翻譯)

撰寫 Python 程式碼非常簡單:這就是為什麼這種語言如此受歡迎的原因。然而,Python 擁有獨特的優勢、魅力和表達能力,這些在一開始可能難以掌握——同時也隱藏著一些陷阱,如果你不注意,可能會輕易絆倒你。《Effective Python》將幫助你充分利用 Python 的力量,撰寫出異常穩健、高效、可維護且表現良好的程式碼。Brett Slatkin 利用 Scott Meyers 的暢銷書《Effective C++》所開創的簡潔、情境驅動風格,匯集了 59 個 Python 最佳實踐、技巧、捷徑和來自專家程式設計師的真實程式碼範例。

透過真實的範例,Slatkin 揭示了鮮為人知的 Python 特性、複雜性和慣用語,這些都會強烈影響程式碼的行為和性能。你將學會在多種選擇存在時,如何選擇最有效和最有效的方式來完成關鍵任務,以及如何撰寫更易於理解、維護和改進的程式碼。

基於他對 Python 能力的深刻理解,Slatkin 為 Python 3.x 和 Python 2.x 的每個主要開發領域提供了實用建議。內容包括:

- 演算法
- 物件
- 並發
- 協作
- 內建模組
- 生產技術
- 以及更多

每個部分都包含具體、可行的指導方針,這些指導方針被組織成項目,每個項目都有經過仔細措辭的建議,並附有詳細的技術論據和啟發性的範例。使用《Effective Python》,你可以系統性地改善你所撰寫的所有 Python 程式碼:不是盲目遵循規則或模仿難以理解的慣用語,而是深入理解它們為何合理的技術原因。