Python3.5.2 document学习系列之01、The Python Standard Library(python 标准库)——概述

 

原文:

Python标准库

上一章的The Python Language Reference 描述了Python语言准确的语法和语义,这里的库参考手册讲解了分散的Python标准库,还有一些通常包含在Python组件中的其它部分。

Python的标准库非常的庞大,下面的长长的目录列表可以表明它提供了大量的工具以供使用。这个库包含了内置模块(用C写的),它可以连接系统功能例如文件IO操作,否则对于Python程序员来说这是难以实现的,还有一些用Python写的可以为日常出现的编程问题提供标准的解决方案。这些模块中的一部分被明确的设计为了将特定平台抽象为与平台无关的API,去鼓励和提高Python程序的可移植性。

Windows平台的Python安装包通常包含了整个标准库和许多额外的组件。对于Unix类操作系统,Python通常提供了包的集合,因此有必要使用操作系统提供的打包工具去获取一些或者所有的可选择的组件。

除了标准库,还有一个不断增长的包含几千个组件的集合(从单个的程序和模块到包和整个应用发展框架),可以从Python Package Index获取。

生词:

exact:精确的

syntax:语法

semantics:语义

manual:手册

distribute:分开;分散;分布;把..分类

optional:可选择的;随意的

component:成分,组件

facility:设施,设备,工具

indicate:表明,说明

inaccessable:不可达到,难以实现

explicitly:明确的,清楚的

enhance:提高,增长

portability:可移植性

specific:特殊的,特定的

neutral:中性的,中立的

obtain:获取,获得

in addition to:除...之外

addition:添加

 

 

 

 

 

 

The Python 3 Standard Library by Example (Developer's Library) by Doug Hellmann English | 12 Jun. 2017 | ASIN: B072QZZDV7 | 1456 Pages | AZW3 | 199.27 MB 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值