Modern Python Standard Library Cookbook
暫譯: 現代 Python 標準庫食譜

Alessandro Molina

  • 出版商: Packt Publishing
  • 出版日期: 2018-08-31
  • 售價: $2,200
  • 貴賓價: 9.5$2,090
  • 語言: 英文
  • 頁數: 366
  • 裝訂: Paperback
  • ISBN: 1788830822
  • ISBN-13: 9781788830829
  • 相關分類: Python程式語言
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Build optimized applications in Python by learning how to smartly implement the standard libraries

Key Features

  • Strategic recipes for effective Python development using the standard libraries
  • Cutting edge techniques to yield high performance from applications
  • Best practices for developing readily scalable production-ready applications

Book Description

Python 3's Standard Library is an ocean of modules that developers can use for various kinds of application development. Given the exhaustive list of libraries, how do you choose the best one to solve your programming needs? This book will show you how you can address specific programming problems in Python using the standard libraries effectively.

The book begins with recipes on containers and data structures and how to perform effective text management in Python. You will find recipes for command line operations, networking, file systems and directories, and concurrent execution. You will learn about security essentials in Python and various development tools for debugging, benchmarking, inspection, error reporting, code evacuation, and tracing. The book covers recipes on graphical user interfaces, multimedia, date and time, and mathematical functions and algorithms.

By the end of the book you will have acquired the skills to write clean codes in Python that meets your team's expectations.

What you will learn

  • Store multiple values per key in associative containers
  • Create interactive character based user interfaces
  • Working with native time and displaying data according to your timezone
  • Read/write SGML family languages, both as a SAX and DOM parser to suite various needs and file sizes
  • Group equivalent items using Itertools and sorted features together
  • Use partials to create unary functions out of multi-arguments functions
  • Implement hashing algorithms to store passwords in a safe way

Who This Book Is For

This book is well suited for a developer who wants to write highly responsive, manageable, scalable, and resilient code in Python. Prior programming knowledge in Python is expected to make the most out of the book.

商品描述(中文翻譯)

**使用 Python 建立優化的應用程式,學習如何智慧地實作標準函式庫**

### 主要特點
- 使用標準函式庫進行有效 Python 開發的策略性範例
- 提供尖端技術以提高應用程式的效能
- 開發可輕鬆擴展的生產就緒應用程式的最佳實踐

### 書籍描述
Python 3 的標準函式庫是一個模組的海洋,開發者可以用來進行各種應用程式開發。面對這份詳盡的函式庫清單,您該如何選擇最適合解決您程式需求的函式庫?本書將向您展示如何有效地使用標準函式庫來解決 Python 中的特定程式問題。

本書從容器和資料結構的範例開始,並介紹如何在 Python 中進行有效的文本管理。您將找到有關命令列操作、網路、檔案系統和目錄以及並行執行的範例。您將學習 Python 中的安全性基本概念以及各種開發工具,用於除錯、基準測試、檢查、錯誤報告、程式碼撤回和追蹤。本書涵蓋了圖形使用者介面、多媒體、日期和時間以及數學函式和演算法的範例。

在本書結束時,您將掌握撰寫符合團隊期望的乾淨 Python 程式碼的技能。

### 您將學到的內容
- 在關聯容器中為每個鍵儲存多個值
- 創建互動式字符基礎使用者介面
- 使用本地時間並根據您的時區顯示數據
- 讀取/寫入 SGML 家族語言,作為 SAX 和 DOM 解析器以滿足各種需求和檔案大小
- 使用 Itertools 和排序功能將等效項目分組
- 使用部分函數從多參數函數創建單參數函數
- 實作雜湊演算法以安全地儲存密碼

### 本書適合誰
本書非常適合希望在 Python 中撰寫高度響應、可管理、可擴展和具彈性程式碼的開發者。建議具備 Python 的先前程式設計知識,以便充分利用本書的內容。