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

📄 builtin.html

📁 一本很好的python的说明书,适合对python感兴趣的人
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>2. Built-in Types, Exceptions and Functions</title>
<META NAME="description" CONTENT="2. Built-in Types, Exceptions and Functions">
<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="python.html" tppabs="http://www.python.org/doc/current/lib/python.html">
<LINK REL="previous" href="intro.html" tppabs="http://www.python.org/doc/current/lib/intro.html">
<LINK REL="up" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">
<LINK REL="next" href="types.html" tppabs="http://www.python.org/doc/current/lib/types.html">
</head>
<body>
<DIV CLASS="navigation"><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="intro.html" tppabs="http://www.python.org/doc/current/lib/intro.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="types.html" tppabs="http://www.python.org/doc/current/lib/types.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="intro.html" tppabs="http://www.python.org/doc/current/lib/intro.html">1. Introduction</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="types.html" tppabs="http://www.python.org/doc/current/lib/types.html">2.1 Built-in Types</A>
<br><hr></DIV>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION004000000000000000000">
2. Built-in Types, Exceptions and Functions</A>
</H1>

<P>
Names for built-in exceptions and functions are found in a separate
symbol table.  This table is searched last when the interpreter looks
up the meaning of a name, so local and global
user-defined names can override built-in names.  Built-in types are
described together here for easy reference.<A NAME="tex2html1"
  HREF="#foot131"><SUP>2.1</SUP></A>

<P>
The tables in this chapter document the priorities of operators by
listing them in order of ascending priority (within a table) and
grouping operators that have the same priority in the same box.
Binary operators of the same priority group from left to right.
(Unary operators group from right to left, but there you have no real
choice.)  See chapter 5 of the <em class='citetitle'><a
 href="javascript:if(confirm('http://www.python.org/doc/current/ref/ref.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.python.org/doc/current/ref/ref.html'" tppabs="http://www.python.org/doc/current/ref/ref.html"
 title='Python
Reference Manual'
 >Python
Reference Manual</a></em> for the complete picture on operator priorities.
<BR><HR><H4>Footnotes</H4>
<DL>
<DT><A NAME="foot131">... reference.</A><A NAME="foot131"
 href="builtin.html#tex2html1" tppabs="http://www.python.org/doc/current/lib/builtin.html#tex2html1"><SUP>2.1</SUP></A>
<DD>
	Most descriptions sorely lack explanations of the exceptions
	that may be raised -- this will be fixed in a future version of
	this manual.

</DL>
<p><hr>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>

<UL>
<LI><A NAME="tex2html916"
  href="types.html" tppabs="http://www.python.org/doc/current/lib/types.html">2.1 Built-in Types </A>
<UL>
<LI><A NAME="tex2html917"
  href="truth.html" tppabs="http://www.python.org/doc/current/lib/truth.html">2.1.1 Truth Value Testing </A>
<LI><A NAME="tex2html918"
  href="boolean.html" tppabs="http://www.python.org/doc/current/lib/boolean.html">2.1.2 Boolean Operations </A>
<LI><A NAME="tex2html919"
  href="comparisons.html" tppabs="http://www.python.org/doc/current/lib/comparisons.html">2.1.3 Comparisons </A>
<LI><A NAME="tex2html920"
  href="typesnumeric.html" tppabs="http://www.python.org/doc/current/lib/typesnumeric.html">2.1.4 Numeric Types </A>
<UL>
<LI><A NAME="tex2html921"
  href="bitstring-ops.html" tppabs="http://www.python.org/doc/current/lib/bitstring-ops.html">2.1.4.1 Bit-string Operations on Integer Types </A>
</UL>
<LI><A NAME="tex2html922"
  href="typesseq.html" tppabs="http://www.python.org/doc/current/lib/typesseq.html">2.1.5 Sequence Types </A>
<UL>
<LI><A NAME="tex2html923"
  href="string-methods.html" tppabs="http://www.python.org/doc/current/lib/string-methods.html">2.1.5.1 String Methods </A>
<LI><A NAME="tex2html924"
  href="typesseq-strings.html" tppabs="http://www.python.org/doc/current/lib/typesseq-strings.html">2.1.5.2 String Formatting Operations </A>
<LI><A NAME="tex2html925"
  href="typesseq-xrange.html" tppabs="http://www.python.org/doc/current/lib/typesseq-xrange.html">2.1.5.3 XRange Type </A>
<LI><A NAME="tex2html926"
  href="typesseq-mutable.html" tppabs="http://www.python.org/doc/current/lib/typesseq-mutable.html">2.1.5.4 Mutable Sequence Types </A>
</UL>
<LI><A NAME="tex2html927"
  href="typesmapping.html" tppabs="http://www.python.org/doc/current/lib/typesmapping.html">2.1.6 Mapping Types </A>
<LI><A NAME="tex2html928"
  href="typesother.html" tppabs="http://www.python.org/doc/current/lib/typesother.html">2.1.7 Other Built-in Types </A>
<UL>
<LI><A NAME="tex2html929"
  href="typesmodules.html" tppabs="http://www.python.org/doc/current/lib/typesmodules.html">2.1.7.1 Modules </A>
<LI><A NAME="tex2html930"
  href="typesobjects.html" tppabs="http://www.python.org/doc/current/lib/typesobjects.html">2.1.7.2 Classes and Class Instances </A>
<LI><A NAME="tex2html931"
  href="typesfunctions.html" tppabs="http://www.python.org/doc/current/lib/typesfunctions.html">2.1.7.3 Functions </A>
<LI><A NAME="tex2html932"
  href="typesmethods.html" tppabs="http://www.python.org/doc/current/lib/typesmethods.html">2.1.7.4 Methods </A>
<LI><A NAME="tex2html933"
  href="bltin-code-objects.html" tppabs="http://www.python.org/doc/current/lib/bltin-code-objects.html">2.1.7.5 Code Objects </A>
<LI><A NAME="tex2html934"
  href="bltin-type-objects.html" tppabs="http://www.python.org/doc/current/lib/bltin-type-objects.html">2.1.7.6 Type Objects </A>
<LI><A NAME="tex2html935"
  href="bltin-null-object.html" tppabs="http://www.python.org/doc/current/lib/bltin-null-object.html">2.1.7.7 The Null Object </A>
<LI><A NAME="tex2html936"
  href="bltin-ellipsis-object.html" tppabs="http://www.python.org/doc/current/lib/bltin-ellipsis-object.html">2.1.7.8 The Ellipsis Object </A>
<LI><A NAME="tex2html937"
  href="bltin-file-objects.html" tppabs="http://www.python.org/doc/current/lib/bltin-file-objects.html">2.1.7.9 File Objects
               </A>
<LI><A NAME="tex2html938"
  href="typesinternal.html" tppabs="http://www.python.org/doc/current/lib/typesinternal.html">2.1.7.10 Internal Objects </A>
</UL>
<LI><A NAME="tex2html939"
  href="specialattrs.html" tppabs="http://www.python.org/doc/current/lib/specialattrs.html">2.1.8 Special Attributes </A>
</UL>
<LI><A NAME="tex2html940"
  href="module-exceptions.html" tppabs="http://www.python.org/doc/current/lib/module-exceptions.html">2.2 Built-in Exceptions</A>
<LI><A NAME="tex2html941"
  href="built-in-funcs.html" tppabs="http://www.python.org/doc/current/lib/built-in-funcs.html">2.3 Built-in Functions </A>
</UL>
<!--End of Table of Child-Links-->

<DIV CLASS="navigation"><p><hr><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="intro.html" tppabs="http://www.python.org/doc/current/lib/intro.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="types.html" tppabs="http://www.python.org/doc/current/lib/types.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="intro.html" tppabs="http://www.python.org/doc/current/lib/intro.html">1. Introduction</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="types.html" tppabs="http://www.python.org/doc/current/lib/types.html">2.1 Built-in Types</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 + -