Python Cookbook, 3/e (Paperback) (Python 食譜(第三版))

David Beazley, Brian K. Jones

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

相關主題

商品描述

If you need help writing programs in Python 3, or want to update older Python 2 code, this book is just the ticket. Packed with practical recipes written and tested with Python 3.3, this unique cookbook is for experienced Python programmers who want to focus on modern tools and idioms.

Inside, you’ll find complete recipes for more than a dozen topics, covering the core Python language as well as tasks common to a wide variety of application domains. Each recipe contains code samples you can use in your projects right away, along with a discussion about how and why the solution works.

Topics include:

  • Data Structures and Algorithms
  • Strings and Text
  • Numbers, Dates, and Times
  • Iterators and Generators
  • Files and I/O
  • Data Encoding and Processing
  • Functions
  • Classes and Objects
  • Metaprogramming
  • Modules and Packages
  • Network and Web Programming
  • Concurrency
  • Utility Scripting and System Administration
  • Testing, Debugging, and Exceptions
  • C Extensions

商品描述(中文翻譯)

如果您需要幫助使用Python 3編寫程式,或者想要更新舊的Python 2代碼,這本書正是您需要的。這本獨特的食譜書充滿了使用Python 3.3編寫和測試的實用食譜,適合有經驗的Python程序員,他們想要專注於現代工具和慣用語法。

在這本書中,您將找到超過十幾個主題的完整食譜,涵蓋了核心Python語言以及廣泛應用領域常見的任務。每個食譜都包含您可以立即在項目中使用的代碼示例,以及有關解決方案如何以及為什麼有效的討論。

主題包括:

- 數據結構和算法
- 字符串和文本
- 數字、日期和時間
- 迭代器和生成器
- 文件和I/O
- 數據編碼和處理
- 函數
- 類和對象
- 元編程
- 模塊和包
- 網絡和Web編程
- 並發性
- 實用腳本和系統管理
- 測試、調試和異常處理
- C擴展