The Python 3 Standard Library by Example (Paperback)
暫譯: Python 3 標準庫範例解析 (平裝本)

Doug Hellmann

  • 出版商: Addison Wesley
  • 出版日期: 2017-06-01
  • 售價: $2,550
  • 貴賓價: 9.5$2,423
  • 語言: 英文
  • 頁數: 1456
  • 裝訂: Paperback
  • ISBN: 0134291050
  • ISBN-13: 9780134291055
  • 相關分類: Python程式語言
  • 已絕版

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

相關主題

商品描述

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

  • 以加密方式簽署和驗證消息

  • 使用進程和線程管理並發操作

  • 測試、調試、編譯、分析、語言、導入和打包工具

  • 控制運行時與解譯器或環境的互動