Python Library Reference

Python Library Reference
复制标题

Python 库参考

DOI:
--
复制
发表时间:
1999
期刊:
影响因子:
--
通讯作者:
G. Rossum
G. Rossum
中科院分区:
--
文献类型:
--
作者:
G. Rossum

文献摘要

被引文献

相似文献

Python是一种可扩展的、解释性的、面向对象的编程语言。它支持广泛的应用程序,从简单的文本处理脚本到交互式WWW浏览器。虽然Python参考手册描述了该语言的确切语法和语义,但它没有描述与该语言一起分发的标准库,这大大增强了其即时可用性。这个库包含内置模块(用C编写),提供对系统功能的访问,例如Python程序员无法访问的文件I/O,以及用Python编写的模块,为日常编程中出现的许多问题提供标准化解决方案。其中一些模块是明确设计来鼓励和增强Python程序的可移植性的。本库参考手册记录了Python的标准库,以及许多可选的库模块(可能可用也可能不可用,这取决于底层平台是否支持它们以及编译时的配置选择)。它还记录了该语言的标准类型及其内置函数和异常,其中许多在参考手册中没有或不完全记录。本手册假设您具备Python语言的基本知识。有关Python的非正式介绍,请参阅Python参考手册; Python参考手册仍然是语法和语义问题的最高权威。最后,名为《扩展和嵌入Python解释器》的手册描述了如何向Python添加新的扩展以及如何将其嵌入到其他应用程序中。
Python is an extensible, interpreted, object-oriented programming language. It supports a wide range of applications, from simple text processing scripts to interactive WWW browsers. While the Python Reference Manual describes the exact syntax and semantics of the language, it does not describe the standard library that is distributed with the language, and which greatly enhances its immediate usability. This 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. This library reference manual documents Python's standard library, as well as many optional library modules (which may or may not be available, depending on whether the underlying platform supports them and on the configuration choices made at compile time). It also documents the standard types of the language and its built-in functions and exceptions, many of which are not or incompletely documented in the Reference Manual. This manual assumes basic knowledge about the Python language. For an informal introduction to Python, see the Python Tutorial; the Python Reference Manual remains the highest authority on syntactic and semantic questions. Finally, the manual entitled Extending and Embedding the Python Interpreter describes how to add new extensions to Python and how to embed it in other applications.