📄 106.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Robots" content="INDEX,NOFOLLOW">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<TITLE>Safari | Python Essential Reference, Second Edition -> A. The Python Library</TITLE>
<LINK REL="stylesheet" HREF="oreillyi/oreillyM.css">
</HEAD>
<BODY bgcolor="white" text="black" link="#990000" vlink="#990000" alink="#990000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" cellpadding=5 cellspacing=0 border=0 class="navtopbg"><tr><td><font size="1"><p class="navtitle"><a href="2.html" class="navtitle">Linux/Unix</a> > <a href="0735710910.html" class="navtitle">Python Essential Reference, Second Edition</a> > <span class="nonavtitle">A. The Python Library</span></p></font></td><td align="right" valign="top" nowrap><font size="1"><a href="main.asp?list" class="safnavoff">See All Titles</a></font></td></tr></table>
<TABLE width=100% bgcolor=white border=0 cellspacing=0 cellpadding=5><TR><TD>
<TABLE border=0 width="100%" cellspacing=0 cellpadding=0><TR><td align=left width="15%" class="headingsubbarbg"><a href="104.html" title="Program Termination"><font size="1">< BACK</font></a></td><td align=center width="70%" class="headingsubbarbg"><font size="1"><a href="popanote.asp?pubui=oreilly&bookname=0735710910&snode=106" target="_blank" title="Make a public or private annnotation">Make Note</a> | <a href="106.html" title="Use a Safari bookmark to remember this section">Bookmark</a></font></td><td align=right width="15%" class="headingsubbarbg"><a href="107.html" title="Built-in Functions and Exceptions"><font size="1">CONTINUE ></font></a></td></TR></TABLE>
<a href="5%2F28%2F2002+9%3A04%3A42+PM.html" TABINDEX="-1"><img src=images/spacer.gif border=0 width=1 height=1></a><font color=white size=1>155117184014003188065099048180054212144238241179195140058238111161105082191053160024023103</font><a href="read4.asp?bookname=0735710910&snode=106&now=5%2F28%2F2002+9%3A04%3A42+PM" TABINDEX="-1"><img src=images/spacer.gif border=0 width=1 height=1></a><br>
<FONT><h2>Appendix
A. The Python Library</h2><p>Python is bundled with a large collection of modules that provide a wide range of services ranging from interacting with the operating system to multimedia support. These modules are collectively known as the <i>Python library</I>. Currently, the library consists of approximately 200 modules that have been contributed by dozens of users.</P>
<P>This appendix describes most of the more frequently used modules in the Python library, with a focus on built-in functions, Python services, string processing, operating system interfaces, threads, and network programming. A brief overview of background material is introduced as necessary, but the reader is assumed to be reasonably familiar with basic operating system and programming concepts. Furthermore, because much of the library is based on C programming APIs, a good C programming book may help with some of the finer points of some modules. Extensive online documentation for the library is also available at <A targET="_blank" HRef="http://www.python.org/doc/lib">http://www.python.org/doc/lib</a>.</p>
<P>This appendix is largely based on the contents of the online library documentation as of Python version 2.1. However, a number of substantial modifications have been made:</P>
<UL>
<li>
<p>The library reference has been abridged to fit into a more compact format.</p>
</li>
<li>
<p>Additional reference material has been added to better describe certain modules梕specially with respect to operating system interfaces and network programming.</p>
</li>
<li>
<p>Several modules require significant understanding of outside topics such as low-level network protocols and data formats. In these cases, only a brief description is given, along with references to related information.</p>
</li>
<li>
<P>Special-purpose modules applicable to a single platform are omitted (for instance, SGI multimedia extensions).</p>
</lI>
<li>
<p>Large frameworks such as Tkinter, XML processing, and the Win32 extensions are omitted because they抮e beyond the scope of this book (and they抮e covered in books of their own).</P>
</li>
<li>
<P>Obsolete modules are omitted, even though these modules are still included in the standard distribution.</p>
</li>
</UL><P>It抯 also important to note that the Python library is always being improved and extended with new functionality. Although the modules covered here are the most stable, their contents are still likely to change slightly over time. When in doubt, consult the online documentation.</P>
<p>Finally, a few words on compatibility and availability. Unless otherwise indicated, each module is available on all platforms. When platform-specific issues are discussed, they抮e clearly marked.</p>
</foNT>
<P><TABLE width="100%" border=0><TR valign="top"><TD><font size=1 color="#C0C0C0"><br></font></TD><TD align=right><font size=1 color="#C0C0C0">Last updated on 3/28/2002<br>Python Essential Reference, Second Edition, © 2002 New Riders Publishing</font></TD></TR></TABLE></P>
<TABLE border=0 width="100%" cellspacing=0 cellpadding=0><TR><td align=left width="15%" class="headingsubbarbg"><a href="104.html" title="Program Termination"><font size="1">< BACK</font></a></td><td align=center width="70%" class="headingsubbarbg"><font size="1"><a href="popanote.asp?pubui=oreilly&bookname=0735710910&snode=106" target="_blank" title="Make a public or private annnotation">Make Note</a> | <a href="106.html" title="Use a Safari bookmark to remember this section">Bookmark</a></font></td><td align=right width="15%" class="headingsubbarbg"><a href="107.html" title="Built-in Functions and Exceptions"><font size="1">CONTINUE ></font></a></td></TR></TABLE>
</TD></TR></TABLE>
<!--EndOfBrowse-->
</TD></TR></TABLE>
<table width=100% border=0 cellspacing=0 cellpadding=0 bgcolor=#990000><tr><td><p align=center><font size=1 face="verdana,arial,helvetica" color=white>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -