/usr/share/doc/diveintopython-zh/html/dynamic_functions/summary.html is in diveintopython-zh 5.4b-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | <!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>17.8. 小结</title>
<link rel="stylesheet" href="../diveintopython.css" type="text/css">
<link rev="made" href="mailto:f8dy@diveintopython.org">
<meta name="generator" content="DocBook XSL Stylesheets V1.52.2">
<meta name="keywords" content="Python, Dive Into Python, tutorial, object-oriented, programming, documentation, book, free">
<meta name="description" content="Python from novice to pro">
<link rel="home" href="../toc/index.html" title="Dive Into Python">
<link rel="up" href="index.html" title="第 17 章 动态函数">
<link rel="previous" href="stage6.html" title="17.7. plural.py, 第 6 阶段">
<link rel="next" href="../performance_tuning/index.html" title="第 18 章 性能优化">
</head>
<body>
<table id="Header" width="100%" border="0" cellpadding="0" cellspacing="0" summary="">
<tr>
<td id="breadcrumb" colspan="5" align="left" valign="top">导航:<a href="../index.html">起始页</a> > <a href="../toc/index.html">Dive Into Python</a> > <a href="index.html">动态函数</a> > <span class="thispage">小结</span></td>
<td id="navigation" align="right" valign="top"> <a href="stage6.html" title="上一页: “plural.py, 第 6 阶段”"><<</a> <a href="../performance_tuning/index.html" title="下一页: “性能优化”">>></a></td>
</tr>
<tr>
<td colspan="3" id="logocontainer">
<h1 id="logo"><a href="../index.html" accesskey="1">深入 Python :Dive Into Python 中文版</a></h1>
<p id="tagline">Python 从新手到专家 [Dip_5.4b_CPyUG_Release]</p>
</td>
<td colspan="3" align="right">
<form id="search" method="GET" action="http://www.google.com/custom">
<p><label for="q" accesskey="4">Find: </label><input type="text" id="q" name="q" size="20" maxlength="255" value=""> <input type="submit" value="搜索"><input type="hidden" name="domains" value="woodpecker.org.cn"><input type="hidden" name="sitesearch" value="www.woodpecker.org.cn/diveintopython"></p>
</form>
</td>
</tr>
</table>
<!--#include virtual="/inc/ads" -->
<div class="section" lang="zh_cn">
<div class="titlepage">
<div>
<div>
<h2 class="title"><a name="plural.summary"></a>17.8. 小结
</h2>
</div>
</div>
<div></div>
</div>
<div class="abstract">
<p>这一章中我们探讨了几个不同的高级技术。它们并不都适用于任何情况。</p>
</div>
<p>你现在应该能自如应用如下技术:</p>
<div class="itemizedlist">
<ul>
<li>应用<a href="stage1.html" title="17.2. plural.py, 第 1 阶段">正则表达式进行字符串替换</a>。
</li>
<li>将<a href="stage2.html" title="17.3. plural.py, 第 2 阶段">函数当作对象</a>,把它们存于列表中,把它们赋值给变量,并通过变量来调用它们。
</li>
<li>构建<a href="stage3.html" title="17.4. plural.py, 第 3 阶段">应用 <tt class="literal">lambda</tt> 的动态函数</a>。
</li>
<li>构建<a href="stage4.html" title="17.5. plural.py, 第 4 阶段">闭合</a>,将外部变量作为常量构建动态函数。
</li>
<li>构建<a href="stage6.html" title="17.7. plural.py, 第 6 阶段">生成器</a>,进行逻辑递增操作并在每次调用时返回不同值的恢复执行函数。
</li>
</ul>
</div>
<p>抽象化,动态构建函数,构建闭合以及应用生成器能够使你的代码更加简单化、可读化、灵活化。你需要在简洁和功能实现两方面进行平衡。</p>
</div>
<table class="Footer" width="100%" border="0" cellpadding="0" cellspacing="0" summary="">
<tr>
<td width="35%" align="left"><br><a class="NavigationArrow" href="stage6.html"><< plural.py, 第 6 阶段</a></td>
<td width="30%" align="center"><br> <span class="divider">|</span> <a href="index.html#plural.divein" title="17.1. 概览">1</a> <span class="divider">|</span> <a href="stage1.html" title="17.2. plural.py, 第 1 阶段">2</a> <span class="divider">|</span> <a href="stage2.html" title="17.3. plural.py, 第 2 阶段">3</a> <span class="divider">|</span> <a href="stage3.html" title="17.4. plural.py, 第 3 阶段">4</a> <span class="divider">|</span> <a href="stage4.html" title="17.5. plural.py, 第 4 阶段">5</a> <span class="divider">|</span> <a href="stage5.html" title="17.6. plural.py, 第 5 阶段">6</a> <span class="divider">|</span> <a href="stage6.html" title="17.7. plural.py, 第 6 阶段">7</a> <span class="divider">|</span> <span class="thispage">8</span> <span class="divider">|</span>
</td>
<td width="35%" align="right"><br><a class="NavigationArrow" href="../performance_tuning/index.html">性能优化 >></a></td>
</tr>
<tr>
<td colspan="3"><br></td>
</tr>
</table>
<div class="Footer">
<p class="copyright">Copyright © 2000, 2001, 2002, 2003, 2004 <a href="mailto:mark@diveintopython.org">Mark Pilgrim</a></p>
<p class="copyright">Copyright © 2001, 2002, 2003, 2004, 2005, 2006, 2007 <a href="mailto:python-cn@googlegroups.com">CPyUG (邮件列表)</a></p>
</div>
</body>
</html>
|