appendixb.htm

来自「很好的一本学习Python的书籍」· HTM 代码 · 共 1,066 行 · 第 1/3 页

HTM
1,066
字号
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Times New Roman, Times, Serif" color="#0000ff" size="3">
        <u>http://alpha.olm.net/</u></font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{10E0}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Times New Roman, Times, Serif" size="3">for information. 
        I don't have a Macintosh, so no figures are included here.</font><font face="Times New Roman, Times, Serif" color="#ffff00" size="3"><!-- break --></font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{10E1}">
    <p>&nbsp;</a></td>
  </tr>
</table>
<p><font color="white" size="0"></p>
</center>
<p><a name="bottom">&nbsp;</a>
<!-- netLibrary.com Copyright Notice --></font></p>
<p>&nbsp;</p>
<center>
<table cellPadding="0" width="100%" border="0">
  <tr>
    <td align="middle">
    <table cellSpacing="0" cellPadding="2" width="100%" border="0">
      <tr>
        <td align="left">&nbsp;</td>
        <td align="right">&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td align="left"><a name="{10E2}">
    <table cellSpacing="0" cellPadding="0" width="100%" border="0">
      <tr>
        <td align="right">
        <font face="Times New Roman, Times, Serif" color="#ff0000" size="2">Page 
        468</font></td>
      </tr>
    </table>
    </a><a name="{10E3}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="17"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Times New Roman, Times, Serif" size="3"><b>IDLE</b></font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{10E4}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Times New Roman, Times, Serif" size="3">IDLE comes with 
        your Python distribution, but it may not be preinstalled for you on many 
        Linux distributions. Even on the Red Hat distribution, which uses Python 
        extensively in its configuration programs, IDLE is not installed by 
        default. The reason is that IDLE became available beginning with Python 
        1.5.2, and Red Hat 5.2 distributes 1.5.1 (certainly a stable version, 
        and all the examples and code in this book should work without change). 
        Red Hat 6.0 and 6.1 come with 1.5.2, including IDLE, installed in /usr/bin.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{10E5}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Times New Roman, Times, Serif" size="3">I think that 
        IDLE is worth the trouble of installing it, but many may not feel that 
        way. On certain Linux distributions, for example, it is very difficult 
        to get running. On Red Hat, you can build Python yourself, but to avoid 
        breaking the Red Hat scripts, you need to install it into </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3">/usr/bin</font><font face="Times New Roman, Times, Serif" size="3"> 
        instead of the default </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3">/usr/local/bin</font><font face="Times New Roman, Times, Serif" size="3">; 
        this is easily accomplished by specifying </font>
        <font face="Courier New, Courier, Mono New, Courier, Mono" size="3">
        ./configure&nbsp;-prefix&nbsp;/usr/bin</font><font face="Times New Roman, Times, Serif" size="3"> 
        when you run the configure script before compiling Python. If you have 
        no idea what I'm talking about, it's probably best if you leave the Red 
        Hat 5.2 Python 1.5.1 installed version in place.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{10E6}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Times New Roman, Times, Serif" size="3">The Windows 
        installer for Python 1.5.2 gives you everything Python, plus IDLE, 
        except that it doesn't make a desktop shortcut for IDLE. Refer to Hour 2 
        for instructions on how to make one yourself. Although you've seen lots 
        of figures of IDLE in action in this book, IDLE's editor window is shown 
        in Figure B.3, editing the same Python program previously shown in the 
        other editors.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{10E7}">
    <table cellSpacing="0" cellPadding="0" width="100%" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td align="middle"><font face="Times New Roman, Times, Serif" size="3">
        <img alt="0468-01.jpg" src="gfx/468-01.JPG" border="0" width="299" height="179"></font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{10E8}">
    <table cellSpacing="0" cellPadding="0" width="100%" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td align="middle"><font face="Times New Roman, Times, Serif" size="2">
        Figure&nbsp;B.3<br>
        IDLE&nbsp;editing&nbsp;a&nbsp;Python&nbsp;program.</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{10E9}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Times New Roman, Times, Serif" size="3">The usual place 
        for Python information, including IDLE, is</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a href="http://www.python.org/" target="_BLANK">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Times New Roman, Times, Serif" color="#0000ff" size="3">
        <u>http://www.python.org/</u></font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{10EB}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Times New Roman, Times, Serif" size="3">An extremely 
        nice tutorial on IDLE, written by Daryl Harms, is available at</font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a href="http://www.python.org/doc/howto/idle/" target="_BLANK">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Times New Roman, Times, Serif" color="#0000ff" size="3">
        <u>http://www.python.org/doc/howto/idle/</u></font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a><a name="{10ED}">
    <table cellSpacing="0" cellPadding="0" border="0">
      <tr>
        <td rowSpan="5">&nbsp;</td>
        <td colSpan="3" height="12"></td>
        <td rowSpan="5">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><font face="Times New Roman, Times, Serif" size="3">It combines 
        color pictures with detailed explanations.</font><font face="Times New Roman, Times, Serif" color="#ffff00" size="3"><!-- break --></font></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3">&nbsp;</td>
      </tr>
      <tr>
        <td colSpan="3" height="1"></td>
      </tr>
    </table>
    </a>
    <p>&nbsp;</td>
  </tr>
</table>
</center>

</body>

</html>

⌨️ 快捷键说明

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