⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 python.html

📁 一本很好的python的说明书,适合对python感兴趣的人
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>3. Python Runtime Services </title>
<META NAME="description" CONTENT="3. Python Runtime Services ">
<META NAME="keywords" CONTENT="lib">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="lib.css" tppabs="http://www.python.org/doc/current/lib/lib.css">
<LINK REL="next" href="strings.html" tppabs="http://www.python.org/doc/current/lib/strings.html">
<LINK REL="previous" href="builtin.html" tppabs="http://www.python.org/doc/current/lib/builtin.html">
<LINK REL="up" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">
<LINK REL="next" href="module-sys.html" tppabs="http://www.python.org/doc/current/lib/module-sys.html">
</head>
<body>
<DIV CLASS="navigation"><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="built-in-funcs.html" tppabs="http://www.python.org/doc/current/lib/built-in-funcs.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
  alt="Previous Page" width="32"></A></td>
<td><A HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
  alt="Up One Level" width="32"></A></td>
<td><A href="module-sys.html" tppabs="http://www.python.org/doc/current/lib/module-sys.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
  alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
  alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
  alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
  alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="built-in-funcs.html" tppabs="http://www.python.org/doc/current/lib/built-in-funcs.html">2.3 Built-in Functions</A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b> <a class="sectref" href="module-sys.html" tppabs="http://www.python.org/doc/current/lib/module-sys.html">3.1 sys  </A>
<br><hr></DIV>
<!--End of Navigation Panel-->

<H1>
<BR>
3. Python Runtime Services
         
</H1>

<P>
The modules described in this chapter provide a wide range of services
related to the Python interpreter and its interaction with its
environment.  Here's an overview:

<P>
<table class='synopsistable'>
  <tr><td><b><tt class='module'><a href="module-sys.html" tppabs="http://www.python.org/doc/current/lib/module-sys.html">sys</a></tt></b></td>
      <td class='synopsis'>Access system-specific parameters and functions.</td></tr>
  <tr><td><b><tt class='module'><a href="module-gc.html" tppabs="http://www.python.org/doc/current/lib/module-gc.html">gc</a></tt></b></td>
      <td class='synopsis'>Interface to the cycle-detecting garbage collector.</td></tr>
  <tr><td><b><tt class='module'><a href="module-atexit.html" tppabs="http://www.python.org/doc/current/lib/module-atexit.html">atexit</a></tt></b></td>
      <td class='synopsis'>Register and execute cleanup functions.</td></tr>
  <tr><td><b><tt class='module'><a href="module-types.html" tppabs="http://www.python.org/doc/current/lib/module-types.html">types</a></tt></b></td>
      <td class='synopsis'>Names for all built-in types.</td></tr>
  <tr><td><b><tt class='module'><a href="module-UserDict.html" tppabs="http://www.python.org/doc/current/lib/module-UserDict.html">UserDict</a></tt></b></td>
      <td class='synopsis'>Class wrapper for dictionary objects.</td></tr>
  <tr><td><b><tt class='module'><a href="module-UserList.html" tppabs="http://www.python.org/doc/current/lib/module-UserList.html">UserList</a></tt></b></td>
      <td class='synopsis'>Class wrapper for list objects.</td></tr>
  <tr><td><b><tt class='module'><a href="module-UserString.html" tppabs="http://www.python.org/doc/current/lib/module-UserString.html">UserString</a></tt></b></td>
      <td class='synopsis'>Class wrapper for string objects.</td></tr>
  <tr><td><b><tt class='module'><a href="module-operator.html" tppabs="http://www.python.org/doc/current/lib/module-operator.html">operator</a></tt></b></td>
      <td class='synopsis'>All Python's standard operators as built-in functions.</td></tr>
  <tr><td><b><tt class='module'><a href="module-traceback.html" tppabs="http://www.python.org/doc/current/lib/module-traceback.html">traceback</a></tt></b></td>
      <td class='synopsis'>Print or retrieve a stack traceback.</td></tr>
  <tr><td><b><tt class='module'><a href="module-linecache.html" tppabs="http://www.python.org/doc/current/lib/module-linecache.html">linecache</a></tt></b></td>
      <td class='synopsis'>This module provides random access to individual lines
                from text files.</td></tr>
  <tr><td><b><tt class='module'><a href="module-pickle.html" tppabs="http://www.python.org/doc/current/lib/module-pickle.html">pickle</a></tt></b></td>
      <td class='synopsis'>Convert Python objects to streams of bytes and back.</td></tr>
  <tr><td><b><tt class='module'><a href="module-cPickle.html" tppabs="http://www.python.org/doc/current/lib/module-cPickle.html">cPickle</a></tt></b></td>
      <td class='synopsis'>Faster version of <tt class='module'><a href="module-pickle.html" tppabs="http://www.python.org/doc/current/lib/module-pickle.html">pickle</a></tt>, but not subclassable.</td></tr>
  <tr><td><b><tt class='module'><a href="module-copyreg.html" tppabs="http://www.python.org/doc/current/lib/module-copyreg.html">copy_reg</a></tt></b></td>
      <td class='synopsis'>Register <tt class="module">pickle</tt> support functions.</td></tr>
  <tr><td><b><tt class='module'><a href="module-shelve.html" tppabs="http://www.python.org/doc/current/lib/module-shelve.html">shelve</a></tt></b></td>
      <td class='synopsis'>Python object persistence.</td></tr>
  <tr><td><b><tt class='module'><a href="module-copy.html" tppabs="http://www.python.org/doc/current/lib/module-copy.html">copy</a></tt></b></td>
      <td class='synopsis'>Shallow and deep copy operations.</td></tr>
  <tr><td><b><tt class='module'><a href="module-marshal.html" tppabs="http://www.python.org/doc/current/lib/module-marshal.html">marshal</a></tt></b></td>
      <td class='synopsis'>Convert Python objects to streams of bytes and back
                (with different constraints).</td></tr>
  <tr><td><b><tt class='module'><a href="module-imp.html" tppabs="http://www.python.org/doc/current/lib/module-imp.html">imp</a></tt></b></td>
      <td class='synopsis'>Access the implementation of the <tt class="keyword">import</tt> statement.</td></tr>
  <tr><td><b><tt class='module'><a href="module-code.html" tppabs="http://www.python.org/doc/current/lib/module-code.html">code</a></tt></b></td>
      <td class='synopsis'>Base classes for interactive Python interpreters.</td></tr>
  <tr><td><b><tt class='module'><a href="module-codeop.html" tppabs="http://www.python.org/doc/current/lib/module-codeop.html">codeop</a></tt></b></td>
      <td class='synopsis'>Compile (possibly incomplete) Python code.</td></tr>
  <tr><td><b><tt class='module'><a href="module-pprint.html" tppabs="http://www.python.org/doc/current/lib/module-pprint.html">pprint</a></tt></b></td>
      <td class='synopsis'>Data pretty printer.</td></tr>
  <tr><td><b><tt class='module'><a href="module-repr.html" tppabs="http://www.python.org/doc/current/lib/module-repr.html">repr</a></tt></b></td>
      <td class='synopsis'>Alternate <tt class="function">repr()</tt> implementation with size limits.</td></tr>
  <tr><td><b><tt class='module'><a href="module-new.html" tppabs="http://www.python.org/doc/current/lib/module-new.html">new</a></tt></b></td>
      <td class='synopsis'>Interface to the creation of runtime implementation objects.</td></tr>
  <tr><td><b><tt class='module'><a href="module-site.html" tppabs="http://www.python.org/doc/current/lib/module-site.html">site</a></tt></b></td>
      <td class='synopsis'>A standard way to reference site-specific modules.</td></tr>
  <tr><td><b><tt class='module'><a href="module-user.html" tppabs="http://www.python.org/doc/current/lib/module-user.html">user</a></tt></b></td>
      <td class='synopsis'>A standard way to reference user-specific modules.</td></tr>
  <tr><td><b><tt class='module'><a href="module-builtin.html" tppabs="http://www.python.org/doc/current/lib/module-builtin.html">__builtin__</a></tt></b></td>
      <td class='synopsis'>The set of built-in functions.</td></tr>
  <tr><td><b><tt class='module'><a href="module-main.html" tppabs="http://www.python.org/doc/current/lib/module-main.html">__main__</a></tt></b></td>
      <td class='synopsis'>The environment where the top-level script is run.</td></tr>
</table>

<BR>
<DIV CLASS="navigation"><p><hr><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="built-in-funcs.html" tppabs="http://www.python.org/doc/current/lib/built-in-funcs.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
  alt="Previous Page" width="32"></A></td>
<td><A HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
  alt="Up One Level" width="32"></A></td>
<td><A href="module-sys.html" tppabs="http://www.python.org/doc/current/lib/module-sys.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
  alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
  alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
  alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
  alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="built-in-funcs.html" tppabs="http://www.python.org/doc/current/lib/built-in-funcs.html">2.3 Built-in Functions</A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b> <a class="sectref" href="module-sys.html" tppabs="http://www.python.org/doc/current/lib/module-sys.html">3.1 sys  </A>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
<hr>See <i><a href="about.html" tppabs="http://www.python.org/doc/current/lib/about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -