The Python Standard Library(中文翻译版 翻译不标准仅供参考)

(迟到了两周的内容终于有时间去完成啦)Library:库,图书馆

While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is distributed with Python. It also describes some of the optional components that are commonly included in Python distributions.

//syntax:语法,句构  semantics语义 manual 手工的,体力的 optional可选择的,随意的

//而Python语言的参考描述了准确的语法以及Python语言的语义,这个库参考手工的描述分配给Python的库的标准。它也描述了一些普遍包括在Python分布里的可选择的部分。

Python’s standard library is very extensive, offering a wide range of facilities as indicated by the long table of contents listed below. The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible to Python programmers, as well as modules written in Python that provide standardized solutions for many problems that occur in everyday programming. Some of these modules are explicitly designed to encourage and enhance the portability of Python programs by abstracting away platform-specifics into platform-neutral APIs.

// indicated指出,表明,象征 modules 单元,单位  functionality功能,函数性 tandardized标准化 explicitly明白地,明确地   portability 可移植性(计),可携带性  built-in嵌入式的,是......的组成部分,内置的

Python的标准库的规模是非常大的,提供大范围的工具作为表明内容的长表格被在下面列出来。库包含了提供存取系统功能的内置的单元(用C写的)例如文件夹I/O否则将达不到Python的程序,当然,用单元写入Python提供了标准化的解决方案对于许多出现在每天的程序设计中的问题。这些单元中的某些是明确的设计去鼓励和提高 Python程序的可移植性通过提取走平台的特性到平台中性的APIS。

The Python installers for the Windows platform usually include the entire standard library and often also include many additional components. For Unix-like operating systems Python is normally provided as a collection of packages, so it may be necessary to use the packaging tools provided with the operating system to obtain some or all of the optional components.

//installers安装程序

// Python安装程序对于Windows平台总是包括全部的标准库且经常包括许多的附加的部分。对于 Unix-like操作系统来说Python是正常的提供作为一个收集包,所以它可能是必要的去使用操作系统去维持一些或者全部可供选择的部分的打包工具。

In addition to the standard library, there is an active collection of hundreds of thousands of components (from individual programs and modules to packages and entire application development frameworks), available from the Python Package Index.

//index索引

//除了标准库,有一个主动收集成百上千的部分(从个体的程序和单元到程序(数据)包和完整的应用发展框架)可从Python的包装索引里获得。

//终于翻译完了,好累好累。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
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
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值