The Python 3 Standard Library by Example

0
(0)

The Python 3 Standard Library by Example
 

  • Author:Doug Hellmann
  • Length: 1456 pages
  • Edition: 1
  • Publisher: Addison-Wesley Professional
  • Publication Date: 2017-06-12
  • ISBN-10: B072QZZDV7
  • ISBN-13: 9780134291055
  • Sales Rank: #523042 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    This is the eBook of the printed book and may not include any media, website access codes, or print supplements that may come packaged with the bound book.

    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

    Table of Contents

    Chapter 1 Text
    Chapter 2 Data Structures
    Chapter 3 Algorithms
    Chapter 4 Dates and Times
    Chapter 5 Mathematics
    Chapter 6 The File System
    Chapter 7 Data Persistence and Exchange
    Chapter 8 Data Compression and Archiving
    Chapter 9 Cryptography
    Chapter 10 Concurrency with Processes, Threads, and Coroutines
    Chapter 11 Networking
    Chapter 12 The Internet
    Chapter 13 Email
    Chapter 14 Application Building Blocks
    Chapter 15 Internationalization and Localization
    Chapter 16 Developer Tools
    Chapter 17 Runtime Features
    Chapter 18 Language Tools
    Chapter 19 Modules and Packages
    Appendix A Porting Notes
    Appendix B Outside of the Standard Library

    中文:

    书名:The Python 3 Standard Library by Example

    这是印刷书籍的电子书,可能不包括任何媒体、网站访问代码或可能随装订书籍一起提供的印刷增刊。

    通过真实代码示例掌握功能强大的Python3标准库

    “Doug方法的天才之处在于,只要每周花15分钟,任何有动力的程序员都可以学习Python标准库。Doug的导游将帮助您拨动开关,为Python的电池完全通电。

    -著名的Python核心开发人员Raymond Hettinger

    Python3标准库包含数百个用于与操作系统、解释器和Internet交互的模块-所有这些模块都经过了广泛的测试,可以启动应用程序开发。现在,Python专家Doug Hellmann通过简洁的源代码和输出示例介绍了Python3.x库的各个主要方面。Hellmann的示例充分展示了每个功能,并且设计为易于学习和重复使用。

    您将发现用于处理文本、数据结构、算法、日期/时间、数学、文件系统、持久性、数据交换、压缩、归档、加密、进程/线程、网络、Internet功能、电子邮件、开发人员和语言工具、运行时、包等的实用代码。每一节都完全涵盖了一个模块,并提供了指向其他资源的链接,使本书成为理想的教程和参考资料。

    Python3标准库的范例 介绍了Python3.x的新库、重要的功能更改以及新的布局和命名约定。Hellmann还为将代码从2.x版本的Python标准库模块迁移到与之对应的3.x版本的版本提供了专家移植指导。

    • 使用字符串、textwrap、re(正则表达式)和Difflib操作文本
    • 使用数据结构:枚举、集合、数组、heapq、队列、结构、复制等
    • 使用FuncTool、iterTools和Conextlib优雅而简洁地实现算法
    • Handle dates/times and advanced mathematical tasks
    • 归档和数据压缩
    • 了解数据交换和持久性,包括JSON、DBM和SQLite
    • 对消息进行加密签名和验证
    • Manage concurrent operations with processes and threads
    • 测试、调试、编译、分析、语言、导入和打包工具
    • 在运行时控制与解释器或环境的交互

    目录表

    Chapter 1 Text
    第2章数据结构
    第三章算法
    Chapter 4 Dates and Times
    第五章数学
    Chapter 6 The File System
    第七章数据持久化和交换
    第八章数据压缩和归档
    第9章密码学
    第10章进程、线程和协程的并发性
    第11章网络
    Chapter 12 The Internet
    Chapter 13 Email
    Chapter 14 Application Building Blocks
    Chapter 15 Internationalization and Localization
    第16章开发人员工具
    第17章运行时功能
    Chapter 18 Language Tools
    第十九章模块和包
    Appendix A Porting Notes
    标准库之外的附录B

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册