最新[Python编程(第4版)].源代码PP4E-Examples-1.4

  • d9_320546
    了解作者
  • 60.5MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-27 04:46
    上传日期
This is the top level of the examples distribution package for the book _Programming Python, 4th Edition_.
9780596158118-master.zip
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8"><meta name="generator" content="pdf2htmlEX"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/base.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/fancy.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/10482660/raw.css"><script src="https://csdnimg.cn/release/download_crawler_static/js/compatibility.min.js"></script><script src="https://csdnimg.cn/release/download_crawler_static/js/pdf2htmlEX.min.js"></script><script>try{pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});}catch(e){}</script><title></title></head><body><div id="sidebar" style="display: none"><div id="outline"></div></div><div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/10482660/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">816</div><div class="t m0 x2 h2 y2 ff1 fs0 fc1 sc0 ls0 ws0">This is the Title of the Book, eMatter Edition</div><div class="t m0 x3 h2 y3 ff1 fs0 fc1 sc0 ls0 ws0">Copyright &#169; 2001 O&#8217;Reilly &amp; Associates, Inc. All rights reserved.</div><div class="t m0 x4 h3 y4 ff2 fs1 fc1 sc0 ls0 ws0">Chapter<span class="_"> </span>14</div><div class="t m0 x5 h4 y5 ff2 fs2 fc0 sc0 ls1 ws0">14</div><div class="t m0 x1 h5 y6 ff1 fs3 fc0 sc0 ls0 ws0">Larg<span class="_ _0"></span>er W<span class="_ _1"></span>eb Site</div><div class="t m0 x1 h5 y7 ff1 fs3 fc0 sc0 ls0 ws0">Examples II</div><div class="t m0 x1 h6 y8 ff1 fs4 fc0 sc0 ls0 ws0">&#8220;T<span class="_ _0"></span>ypos Happen&#8221;</div><div class="t m0 x1 h3 y9 ff2 fs1 fc0 sc0 ls0 ws0">This<span class="_ _2"> </span>chapter<span class="_ _2"> </span>presents<span class="_ _2"> </span>the<span class="_ _2"> </span>second<span class="_ _2"> </span>of<span class="_ _2"> </span>two<span class="_ _2"> </span>server-side<span class="_ _2"> </span>Python<span class="_ _2"> </span>web<span class="_ _2"> </span>programming</div><div class="t m0 x1 h3 ya ff2 fs1 fc0 sc0 ls0 ws0">case<span class="_ _3"> </span>studies.<span class="_ _3"> </span>It<span class="_ _3"> </span>covers<span class="_ _3"> </span>the<span class="_ _3"> </span>design<span class="_ _3"> </span>and<span class="_ _3"> </span>implementation<span class="_ _3"> </span>of<span class="_ _3"> </span><span class="ff3">PyErrata</span>,<span class="_ _3"> </span>a<span class="_ _3"> </span>CGI-based</div><div class="t m0 x1 h3 yb ff2 fs1 fc0 sc0 ls0 ws0">web<span class="_ _4"> </span>site<span class="_ _4"> </span>implemented<span class="_ _4"> </span>entirely<span class="_ _4"> </span>in<span class="_ _4"> </span>Python<span class="_ _4"> </span>that<span class="_ _4"> </span>allows<span class="_ _4"> </span>users<span class="_ _4"> </span>to<span class="_ _4"> </span>post<span class="_ _4"> </span>book<span class="_ _4"> </span>comments</div><div class="t m0 x1 h3 yc ff2 fs1 fc0 sc0 ls0 ws0">and<span class="_ _3"> </span>error<span class="_ _3"> </span>reports,<span class="_ _5"> </span>and<span class="_ _5"> </span>demonstrates<span class="_ _3"> </span>the<span class="_ _3"> </span>concepts<span class="_ _5"> </span>underlying<span class="_ _3"> </span>persistent<span class="_ _3"> </span>database</div><div class="t m0 x1 h3 yd ff2 fs1 fc0 sc0 ls0 ws0">storage<span class="_ _3"> </span>in<span class="_ _3"> </span>the<span class="_ _3"> </span>CGI<span class="_ _3"> </span>world.<span class="_ _3"> </span>As<span class="_ _3"> </span>we&#8217;ll<span class="_ _3"> </span>see,<span class="_ _3"> </span>this<span class="_ _3"> </span>case<span class="_ _3"> </span>study<span class="_ _3"> </span>teaches<span class="_ _3"> </span>both<span class="_ _3"> </span>server-side</div><div class="t m0 x1 h3 ye ff2 fs1 fc0 sc0 ls0 ws0">scripting and Python development techniques.</div><div class="t m0 x1 h6 yf ff1 fs4 fc0 sc0 ls0 ws0">T<span class="_ _6"></span>he PyErr<span class="_ _7"></span>ata W<span class="_ _8"></span>eb Site</div><div class="t m0 x1 h3 y10 ff2 fs1 fc0 sc0 ls0 ws0">The<span class="_"> </span>last<span class="_ _4"> </span>chapter<span class="_"> </span>concluded<span class="_ _4"> </span>with<span class="_ _4"> </span>a<span class="_"> </span>discussion<span class="_ _4"> </span>of<span class="_"> </span>the<span class="_ _4"> </span>downsides<span class="_"> </span>of<span class="_ _4"> </span>deploying<span class="_ _4"> </span>appli-</div><div class="t m0 x1 h3 y11 ff2 fs1 fc0 sc0 ls0 ws0">cations<span class="_"> </span>on<span class="_ _4"> </span>the<span class="_"> </span>Web.<span class="_ _4"> </span>But<span class="_"> </span>now<span class="_"> </span>that<span class="_ _4"> </span>I&#8217;ve<span class="_"> </span>told<span class="_ _4"> </span>you<span class="_"> </span>all<span class="_ _4"> </span>the<span class="_"> </span>reasons<span class="_ _4"> </span>you<span class="_"> </span>might<span class="_ _4"> </span><span class="ff3">not<span class="_ _4"> </span></span>want</div><div class="t m0 x1 h3 y12 ff2 fs1 fc0 sc0 ls0 ws0">to<span class="_ _2"> </span>design<span class="_ _2"> </span>systems<span class="_ _2"> </span>for<span class="_ _2"> </span>the<span class="_ _2"> </span>Web,<span class="_ _2"> </span>I&#8217;m<span class="_ _2"> </span>going<span class="_ _9"> </span>to<span class="_ _9"> </span>completely<span class="_ _2"> </span>contradict<span class="_ _2"> </span>myself<span class="_ _2"> </span>and</div><div class="t m0 x1 h3 y13 ff2 fs1 fc0 sc0 ls0 ws0">present<span class="_ _4"> </span>a<span class="_ _a"> </span>system<span class="_ _4"> </span>that<span class="_ _a"> </span>cries<span class="_ _4"> </span>out<span class="_ _a"> </span>for<span class="_ _4"> </span>a<span class="_ _a"> </span>web-based<span class="_ _4"> </span>implementation.<span class="_ _a"> </span>This<span class="_ _4"> </span>chapter<span class="_ _a"> </span>pre-</div><div class="t m0 x1 h3 y14 ff2 fs1 fc0 sc0 ls0 ws0">sents<span class="_ _5"> </span>the<span class="_ _5"> </span>PyErrata<span class="_ _a"> </span>web<span class="_ _5"> </span>site,<span class="_ _5"> </span>a<span class="_ _5"> </span>Python<span class="_ _5"> </span>program<span class="_ _b"> </span>that<span class="_ _b"> </span>lets<span class="_ _5"> </span>arbitrary<span class="_ _5"> </span>people<span class="_ _b"> </span>on<span class="_ _5"> </span>arbi-</div><div class="t m0 x1 h3 y15 ff2 fs1 fc0 sc0 ls0 ws0">trary<span class="_ _2"> </span>machines<span class="_ _2"> </span>submit<span class="_ _c"> </span>book<span class="_ _2"> </span>comments<span class="_ _2"> </span>and<span class="_ _c"> </span>bug<span class="_ _2"> </span>reports<span class="_ _2"> </span>(usually<span class="_ _c"> </span>called<span class="_ _2"> </span><span class="ff3">errata</span>)</div><div class="t m0 x1 h3 y16 ff2 fs1 fc0 sc0 ls0 ws0">over the Web, using just a web browser.</div><div class="t m0 x1 h3 y17 ff2 fs1 fc0 sc0 ls0 ws0">PyErrata<span class="_ _b"> </span>is<span class="_ _b"> </span>in<span class="_ _b"> </span>some<span class="_ _b"> </span>ways<span class="_ _b"> </span>simpler<span class="_ _b"> </span>than<span class="_ _b"> </span>the<span class="_ _b"> </span>PyMailCgi<span class="_ _b"> </span>case<span class="_ _b"> </span>study<span class="_ _b"> </span>presented<span class="_ _b"> </span>in<span class="_ _b"> </span>the</div><div class="t m0 x1 h3 y18 ff2 fs1 fc0 sc0 ls0 ws0">previous<span class="_ _4"> </span>chapter.<span class="_ _4"> </span>From<span class="_ _4"> </span>a<span class="_ _4"> </span>user&#8217;s<span class="_ _4"> </span>perspective,<span class="_ _4"> </span>PyErrata<span class="_ _4"> </span>is<span class="_ _4"> </span>more<span class="_ _4"> </span>hierarchical<span class="_ _4"> </span>than<span class="_ _4"> </span>lin-</div><div class="t m0 x1 h3 y19 ff2 fs1 fc0 sc0 ls0 ws0">ear:<span class="_ _a"> </span>user<span class="_ _a"> </span>interactions<span class="_ _b"> </span>are<span class="_ _a"> </span>shorter<span class="_ _b"> </span>and<span class="_ _a"> </span>spawn<span class="_ _b"> </span>fewer<span class="_ _a"> </span>pages.<span class="_ _b"> </span>There<span class="_ _a"> </span>is<span class="_ _b"> </span>also<span class="_ _a"> </span>little<span class="_ _b"> </span>state</div><div class="t m0 x1 h3 y1a ff2 fs1 fc0 sc0 ls0 ws0">retention<span class="_ _a"> </span>in<span class="_ _a"> </span>web<span class="_ _a"> </span>pages<span class="_ _a"> </span>themselves<span class="_ _a"> </span>in<span class="_ _a"> </span>PyErrata;<span class="_ _b"> </span>URL<span class="_ _a"> </span>parameters<span class="_ _a"> </span>pass<span class="_ _a"> </span>state<span class="_ _a"> </span>in<span class="_ _a"> </span>only</div><div class="t m0 x1 h3 y1b ff2 fs1 fc0 sc0 ls0 ws0">one isolated case, and no hidden form fields are generated.</div><div class="t m0 x1 h3 y1c ff2 fs1 fc0 sc0 ls0 ws0">On<span class="_ _4"> </span>the<span class="_ _4"> </span>other<span class="_ _4"> </span>hand,<span class="_ _4"> </span>PyErrata<span class="_ _4"> </span>introduces<span class="_ _a"> </span>an<span class="_ _4"> </span>entirely<span class="_ _4"> </span>new<span class="_ _4"> </span>dimension:<span class="_ _4"> </span><span class="ff3">persistent<span class="_ _d"> </span>data</span></div><div class="t m0 x1 h3 y1d ff3 fs1 fc0 sc0 ls0 ws0">storage<span class="ff2">.<span class="_"> </span>State<span class="_ _4"> </span>(error<span class="_"> </span>and<span class="_ _4"> </span>comment<span class="_"> </span>reports)<span class="_ _4"> </span>is<span class="_"> </span>stored<span class="_ _4"> </span>permanently<span class="_"> </span>by<span class="_ _4"> </span>this<span class="_"> </span>system<span class="_ _4"> </span>on</span></div><div class="t m0 x6 h7 y1e ff4 fs5 fc0 sc0 ls0 ws0">,ch14.17404 Page 816 Wednesday, February 7, 2001 2:54 PM</div></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div></body></html>
评论
    相关推荐
    • Python
      Python
    • python
      Python 这是用于大多数基本和简单python代码的示例模板的存储库。
    • Python
      Python Dit是Mijn储存库van Python
    • python
      Python 基本的python编程
    • Python
      Python python和pyspark
    • Python教程
      本手册不会尝试涵盖 Python 的全部知识和每个特性,甚至不会涵盖所有常用的特性。相反地,它介绍了 Python 中许多最引人瞩目的特性,并且会给你一个关于语言特色和风格的认识。读完之后,你将能够阅读和编写 Python ...
    • python绑定
      适用于C ++的库的Python绑定或扩展演示 重点 使用boost.pythonPython.h使c ++工作。 :heavy_large_circle: 的展开方法boost.pythonpython.h :cross_mark: 笔记 没有 资料来源 使用Python.h。 使用boost.python...
    • python学习
      python学习 安装Python 我们转到Python页面进行初始下载:( )在为Mac OSX选择了最新版本(3.9.2)之后,我将其下载到了我的计算机上。 然后,我们搜索了“ Python入门”,并确认VS Code是适用于Python的可行代码...
    • Fluent Python
      This book was written for practicing Python programmers who want to become proficient in Python 3. If you know Python 2 but are willing to migrate to Python 3.4 or later, you should be fine. At the ...
    • Python
      Python 该存储库包含与Python编程研究相关的文档