The Python 3 Standard Library by Example (Developer's Library)

Doug Hellmann

  • 出版商: Addison Wesley
  • 出版日期: 2017-06-01
  • 售價: $2,100
  • 貴賓價: 9.5$1,995
  • 語言: 英文
  • 頁數: 1456
  • 裝訂: Paperback
  • ISBN: 0134291050
  • ISBN-13: 9780134291055
  • 相關分類: Python程式語言
  • 立即出貨 (庫存=1)

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

商品描述

Master the Powerful Python 3 Standard Library through Real Code Examples 

 

“The genius of Doug’s approach is that with 15 minutes per week, any motivated programmer can learn the Python Standard Library. Doug’s guided tour will help you flip the switch to fully power-up Python’s batteries.”

–Raymond Hettinger, Distinguished Python Core Developer

 

 The Python 3 Standard Library contains hundreds of modules for interacting with the operating system, interpreter, and Internet–all extensively tested and ready to jump-start application development. Now, Python expert Doug Hellmann introduces every major area of the Python 3.x library through concise source code and output examples. Hellmann’s examples fully demonstrate each feature and are designed for easy learning and reuse.

 

You’ll find practical code for working with text, data structures, algorithms, dates/times, math, the file system, persistence, data exchange, compression, archiving, crypto, processes/threads, networking, Internet capabilities, email, developer and language tools, the runtime, packages, and more. Each section fully covers one module, with links to additional resources, making this book an ideal tutorial and reference.

 

The Python 3 Standard Library by Example introduces Python 3.x’s new libraries, significant functionality changes, and new layout and naming conventions. Hellmann also provides expert porting guidance for moving code from 2.x Python standard library modules to their Python 3.x equivalents.

  • Manipulate text with string, textwrap, re (regular expressions), and difflib
  • Use data structures: enum, collections, array, heapq, queue, struct, copy, and more
  • Implement algorithms elegantly and concisely with functools, itertools, and contextlib
  • Handle dates/times and advanced mathematical tasks
  • Archive and data compression
  • Understand data exchange and persistence, including json, dbm, and sqlite
  • Sign and verify messages cryptographically
  • Manage concurrent operations with processes and threads
  • Test, debug, compile, profile, language, import, and package tools
  • Control interaction at runtime with interpreters or the environment

商品描述(中文翻譯)

精通強大的Python 3標準庫:透過真實代碼範例

「Doug的方法的天才之處在於,只需每週15分鐘,任何有動力的程式設計師都能學會Python標準庫。Doug的導覽之旅將幫助您完全啟動Python的功能。」
- Raymond Hettinger,傑出的Python核心開發者

Python 3標準庫包含數百個模組,用於與作業系統、解譯器和網際網路進行交互,並且經過了廣泛的測試,可立即啟動應用程式開發。現在,Python專家Doug Hellmann通過簡潔的原始碼和輸出範例介紹了Python 3.x庫的每個主要領域。Hellmann的範例完全展示了每個功能,並且設計用於輕鬆學習和重複使用。

您將找到用於處理文本、資料結構、演算法、日期/時間、數學、檔案系統、持久性、資料交換、壓縮、封存、加密、進程/線程、網路、網際網路功能、電子郵件、開發人員和語言工具、執行時、套件等實用的代碼。每個部分都完整涵蓋一個模組,並提供其他資源的連結,使本書成為理想的教程和參考資料。

《Python 3標準庫範例》介紹了Python 3.x的新庫、重要的功能變更以及新的佈局和命名慣例。Hellmann還提供了將代碼從2.x Python標準庫模組移植到Python 3.x等效模組的專業指導。

- 使用string、textwrap、re(正則表達式)和difflib操作文本
- 使用資料結構:enum、collections、array、heapq、queue、struct、copy等
- 使用functools、itertools和contextlib優雅而簡潔地實現演算法
- 處理日期/時間和高級數學任務
- 封存和資料壓縮
- 了解資料交換和持久性,包括json、dbm和sqlite
- 以加密方式簽署和驗證訊息
- 使用進程和線程管理並行操作
- 測試、除錯、編譯、分析、語言、導入和套件工具
- 通過解譯器或環境控制運行時的互動