<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Glossary — Python 3.3.5 documentation</title>
<link rel="stylesheet" href="_static/pydoctheme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '3.3.5',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/sidebar.js"></script>
<link rel="search" type="application/opensearchdescription+xml"
title="Search within Python 3.3.5 documentation"
href="_static/opensearch.xml"/>
<link rel="author" title="About these documents" href="about.html" />
<link rel="copyright" title="Copyright" href="copyright.html" />
<link rel="top" title="Python 3.3.5 documentation" href="index.html" />
<link rel="next" title="About these documents" href="about.html" />
<link rel="prev" title="“Why is Python Installed on my Computer?” FAQ" href="faq/installed.html" />
<link rel="shortcut icon" type="image/png" href="_static/py.png" />
<script type="text/javascript" src="_static/copybutton.js"></script>
<script type="text/javascript" src="_static/version_switch.js"></script>
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="about.html" title="About these documents"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="faq/installed.html" title="“Why is Python Installed on my Computer?” FAQ"
accesskey="P">previous</a> |</li>
<li><img src="_static/py.png" alt=""
style="vertical-align: middle; margin-top: -1px"/></li>
<li><a href="http://www.python.org/">Python</a> »</li>
<li>
<span class="version_switcher_placeholder">3.3.5</span>
<a href="index.html">Documentation</a> »
</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="glossary">
<span id="id1"></span><h1>Glossary<a class="headerlink" href="#glossary" title="Permalink to this headline">¶</a></h1>
<dl class="glossary docutils">
<dt id="term-"><tt class="docutils literal"><span class="pre">>>></span></tt></dt>
<dd>The default Python prompt of the interactive shell. Often seen for code
examples which can be executed interactively in the interpreter.</dd>
<dt id="term-1"><tt class="docutils literal"><span class="pre">...</span></tt></dt>
<dd>The default Python prompt of the interactive shell when entering code for
an indented code block or within a pair of matching left and right
delimiters (parentheses, square brackets or curly braces).</dd>
<dt id="term-to3">2to3</dt>
<dd><p class="first">A tool that tries to convert Python 2.x code to Python 3.x code by
handling most of the incompatibilities which can be detected by parsing the
source and traversing the parse tree.</p>
<p class="last">2to3 is available in the standard library as <a class="reference internal" href="library/2to3.html#module-lib2to3" title="lib2to3: the 2to3 library"><tt class="xref py py-mod docutils literal"><span class="pre">lib2to3</span></tt></a>; a standalone
entry point is provided as <tt class="file docutils literal"><span class="pre">Tools/scripts/2to3</span></tt>. See
<a class="reference internal" href="library/2to3.html#to3-reference"><em>2to3 - Automated Python 2 to 3 code translation</em></a>.</p>
</dd>
<dt id="term-abstract-base-class">abstract base class</dt>
<dd>Abstract base classes complement <a class="reference internal" href="#term-duck-typing"><em class="xref std std-term">duck-typing</em></a> by
providing a way to define interfaces when other techniques like
<a class="reference internal" href="library/functions.html#hasattr" title="hasattr"><tt class="xref py py-func docutils literal"><span class="pre">hasattr()</span></tt></a> would be clumsy or subtly wrong (for example with
<a class="reference internal" href="reference/datamodel.html#special-lookup"><em>magic methods</em></a>). ABCs introduce virtual
subclasses, which are classes that don’t inherit from a class but are
still recognized by <a class="reference internal" href="library/functions.html#isinstance" title="isinstance"><tt class="xref py py-func docutils literal"><span class="pre">isinstance()</span></tt></a> and <a class="reference internal" href="library/functions.html#issubclass" title="issubclass"><tt class="xref py py-func docutils literal"><span class="pre">issubclass()</span></tt></a>; see the
<a class="reference internal" href="library/abc.html#module-abc" title="abc: Abstract base classes according to PEP 3119."><tt class="xref py py-mod docutils literal"><span class="pre">abc</span></tt></a> module documentation. Python comes with many built-in ABCs for
data structures (in the <a class="reference internal" href="library/collections.abc.html#module-collections.abc" title="collections.abc: Abstract base classes for containers"><tt class="xref py py-mod docutils literal"><span class="pre">collections.abc</span></tt></a> module), numbers (in the
<a class="reference internal" href="library/numbers.html#module-numbers" title="numbers: Numeric abstract base classes (Complex, Real, Integral, etc.)."><tt class="xref py py-mod docutils literal"><span class="pre">numbers</span></tt></a> module), streams (in the <a class="reference internal" href="library/io.html#module-io" title="io: Core tools for working with streams."><tt class="xref py py-mod docutils literal"><span class="pre">io</span></tt></a> module), import finders
and loaders (in the <a class="reference internal" href="library/importlib.html#module-importlib.abc" title="importlib.abc: Abstract base classes related to import"><tt class="xref py py-mod docutils literal"><span class="pre">importlib.abc</span></tt></a> module). You can create your own
ABCs with the <a class="reference internal" href="library/abc.html#module-abc" title="abc: Abstract base classes according to PEP 3119."><tt class="xref py py-mod docutils literal"><span class="pre">abc</span></tt></a> module.</dd>
<dt id="term-argument">argument</dt>
<dd><p class="first">A value passed to a <a class="reference internal" href="#term-function"><em class="xref std std-term">function</em></a> (or <a class="reference internal" href="#term-method"><em class="xref std std-term">method</em></a>) when calling the
function. There are two kinds of argument:</p>
<ul>
<li><p class="first"><em class="dfn">keyword argument</em>: an argument preceded by an identifier (e.g.
<tt class="docutils literal"><span class="pre">name=</span></tt>) in a function call or passed as a value in a dictionary
preceded by <tt class="docutils literal"><span class="pre">**</span></tt>. For example, <tt class="docutils literal"><span class="pre">3</span></tt> and <tt class="docutils literal"><span class="pre">5</span></tt> are both keyword
arguments in the following calls to <a class="reference internal" href="library/functio
没有合适的资源?快使用搜索试试~ 我知道了~
python参考手册(中文,包含2和3)
共257个文件
html:254个
txt:3个
需积分: 9 10 下载量 3 浏览量
2018-11-30
10:27:01
上传
评论
收藏 2.71MB ZIP 举报
温馨提示
python参考手册是权威的Python语言参考指南,内容涉及核心Python语言和Python库的最重要部分。本书内容简洁扼要、可读性强,书中还包括了一些没有在Python官方文档或其他资料中出现过的一些高级的主题。同时,内容均为中文,且包含Python2和Python3,方便大家学习。
资源推荐
资源详情
资源评论
收起资源包目录
python参考手册(中文,包含2和3) (257个子文件)
glossary.html 89KB
glossary.html 78KB
datastructures(13).html 74KB
datastructures(11).html 74KB
datastructures(5).html 74KB
datastructures(12).html 74KB
datastructures(7).html 74KB
datastructures(6).html 74KB
datastructures(8).html 74KB
datastructures(1).html 74KB
datastructures(4).html 74KB
datastructures.html 74KB
datastructures(2).html 74KB
datastructures(10).html 74KB
datastructures(9).html 74KB
datastructures(3).html 74KB
index(4).html 73KB
classes(3).html 69KB
classes(7).html 69KB
classes(15).html 69KB
classes(13).html 69KB
classes(9).html 69KB
classes(14).html 69KB
classes(4).html 69KB
classes.html 69KB
classes(12).html 69KB
classes(5).html 69KB
classes(2).html 69KB
classes(17).html 69KB
classes(8).html 69KB
classes(10).html 69KB
classes(6).html 69KB
classes(1).html 69KB
classes(11).html 69KB
classes(16).html 69KB
datastructures(12).html 69KB
datastructures(11).html 69KB
datastructures(7).html 69KB
datastructures(1).html 69KB
datastructures(8).html 69KB
datastructures(5).html 69KB
datastructures(10).html 69KB
datastructures(9).html 69KB
datastructures(4).html 69KB
datastructures(2).html 69KB
datastructures(6).html 69KB
datastructures.html 69KB
datastructures(3).html 69KB
classes(6).html 66KB
classes(13).html 66KB
classes(10).html 66KB
classes(12).html 66KB
classes(3).html 66KB
classes(15).html 66KB
classes(16).html 66KB
classes(4).html 66KB
classes(2).html 66KB
classes(5).html 66KB
classes(1).html 66KB
classes(9).html 66KB
classes.html 66KB
classes(7).html 66KB
classes(14).html 66KB
classes(8).html 66KB
classes(11).html 66KB
controlflow(8).html 65KB
controlflow(14).html 65KB
controlflow(7).html 65KB
controlflow(1).html 65KB
controlflow(6).html 65KB
controlflow(9).html 65KB
controlflow(13).html 65KB
controlflow(12).html 65KB
controlflow(5).html 65KB
controlflow(11).html 65KB
controlflow(2).html 65KB
controlflow(10).html 65KB
controlflow.html 65KB
controlflow(3).html 65KB
controlflow(4).html 65KB
controlflow(5).html 62KB
controlflow(14).html 62KB
controlflow(3).html 62KB
controlflow(13).html 62KB
controlflow(6).html 62KB
controlflow(12).html 62KB
controlflow(9).html 62KB
controlflow(7).html 62KB
controlflow(10).html 62KB
controlflow(4).html 62KB
controlflow(1).html 62KB
controlflow(11).html 62KB
controlflow(8).html 62KB
controlflow(2).html 62KB
controlflow.html 62KB
index(3).html 60KB
introduction(2).html 54KB
introduction(1).html 54KB
introduction(5).html 54KB
introduction(3).html 54KB
共 257 条
- 1
- 2
- 3
资源评论
来自江南的你
- 粉丝: 4184
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功