appendixb.htm
来自「很好的一本学习Python的书籍」· HTM 代码 · 共 1,066 行 · 第 1/3 页
HTM
1,066 行
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Page 465</title>
</head>
<body>
<p><font color="white" size="0">
<!-- netLibrary.com Copyright Notice --></font></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"> </td>
<td align="right"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left"><a name="{10C1}">
<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
465</font></td>
</tr>
</table>
</a><a name="{10C2}">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td rowSpan="5"> </td>
<td colSpan="3" height="48"> </td>
<td rowSpan="5"> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td> </td>
<td><font face="Times New Roman, Times, Serif" size="4"><b>Appendix B<br>
Editors for Python</b></font></td>
<td> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td colSpan="3" height="1"></td>
</tr>
</table>
</a><a name="{10C3}">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td rowSpan="5"> </td>
<td colSpan="3" height="12"></td>
<td rowSpan="5"> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td> </td>
<td><font face="Times New Roman, Times, Serif" size="3">Many fine
editors are available on the Internet; these are just a few.</font></td>
<td> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td colSpan="3" height="1"></td>
</tr>
</table>
</a><a name="{10C4}">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td rowSpan="5"> </td>
<td colSpan="3" height="17"></td>
<td rowSpan="5"> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td> </td>
<td><font face="Times New Roman, Times, Serif" size="3"><b>Vi and Vim</b></font></td>
<td> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td colSpan="3" height="1"></td>
</tr>
</table>
</a><a name="{10C5}">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td rowSpan="5"> </td>
<td colSpan="3" height="12"></td>
<td rowSpan="5"> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td> </td>
<td><font face="Times New Roman, Times, Serif" size="3">The vi
(pronounced vee-aye) editor is the classic UNIX editor, which has been
ported to many other platforms, including Windows. Originally written
for Berkeley UNIX by Bill Joy (now with Sun Microsystems), the basic
command set has remained unchanged for two decades. It has been extended
and improved, but all the commands, tricks, and shortcuts that I learned
in the early '80s still work, and work well, on all the platforms I work
on.</font></td>
<td> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td colSpan="3" height="1"></td>
</tr>
</table>
</a><a name="{10C6}">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td rowSpan="5"> </td>
<td colSpan="3" height="12"></td>
<td rowSpan="5"> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td> </td>
<td><font face="Times New Roman, Times, Serif" size="3">The vim editor
(vi improved) is the best extended version of vi available. This version
has a vastly extended command set, can do syntax coloring, and even has
a special Python mode to ensure correct indentation and coloring. Figure
B.1shows vim, with my personal preferences enabled, editing a Python
program.</font><font face="Times New Roman, Times, Serif" color="#ffff00" size="3"><!-- break --></font></td>
<td> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td colSpan="3" height="1"></td>
</tr>
</table>
</a><a name="{10C7}">
<p> </a></td>
</tr>
</table>
<p><font color="white" size="0"></p>
</center>
<p><a name="bottom"> </a>
<!-- netLibrary.com Copyright Notice --></font></p>
<p> </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"> </td>
<td align="right"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left"><a name="{10C8}">
<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
466</font></td>
</tr>
</table>
</a><a name="{10C9}">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td rowSpan="5"> </td>
<td colSpan="3" height="12"></td>
<td rowSpan="5"> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td> </td>
<td align="middle"><font face="Times New Roman, Times, Serif" size="3">
<img alt="0466-01.jpg" src="gfx/466-01.JPG" border="0" width="327" height="234"></font></td>
<td> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td colSpan="3" height="1"></td>
</tr>
</table>
</a><a name="{10CA}">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td rowSpan="5"> </td>
<td colSpan="3" height="12"></td>
<td rowSpan="5"> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td> </td>
<td align="middle"><font face="Times New Roman, Times, Serif" size="2">
Figure B.1<br>
vim editing a Python program.</font></td>
<td> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td colSpan="3" height="1"></td>
</tr>
</table>
</a><a name="{10CB}">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td rowSpan="5"> </td>
<td colSpan="3" height="12"></td>
<td rowSpan="5"> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td> </td>
<td><font face="Times New Roman, Times, Serif" size="3">You can find out
everything you need to know about downloading, installing, running, and
customizing vim at</font></td>
<td> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td colSpan="3" height="1"></td>
</tr>
</table>
</a><a href="http://www.vim.org/" target="_BLANK">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td rowSpan="5"> </td>
<td colSpan="3" height="12"></td>
<td rowSpan="5"> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td> </td>
<td><font face="Times New Roman, Times, Serif" color="#0000ff" size="3">
<u>http://www.vim.org/</u></font></td>
<td> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td colSpan="3" height="1"></td>
</tr>
</table>
</a><a name="{10CD}">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td rowSpan="5"> </td>
<td colSpan="3" height="12"></td>
<td rowSpan="5"> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td> </td>
<td><font face="Times New Roman, Times, Serif" size="3">vim is freeware.</font></td>
<td> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td colSpan="3" height="1"></td>
</tr>
</table>
</a><a name="{10CE}">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td rowSpan="5"> </td>
<td colSpan="3" height="17"></td>
<td rowSpan="5"> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td> </td>
<td><font face="Times New Roman, Times, Serif" size="3"><b>Emacs</b></font></td>
<td> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td colSpan="3" height="1"></td>
</tr>
</table>
</a><a name="{10CF}">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td rowSpan="5"> </td>
<td colSpan="3" height="12"></td>
<td rowSpan="5"> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td> </td>
<td><font face="Times New Roman, Times, Serif" size="3">Emacs is
undoubtedly the most customizable editor for anything that has ever
existed. The following is a short quote from the online FAQ on Emacs (</font><font face="Times New Roman, Times, Serif" color="#0000ff" size="3"><a href="http://www.emacs.org/FAQ/faq_4.htm1#SEC27" target="_BLANK"><u>http://www.emacs.org/FAQ/faq_4.htm1#SEC27</u></a></font><font face="Times New Roman, Times, Serif" size="3">)
regarding the history of the program:</font></td>
<td> </td>
</tr>
<tr>
<td colSpan="3"> </td>
</tr>
<tr>
<td colSpan="3" height="1"></td>
</tr>
</table>
</a><a name="{10D0}">
<table cellSpacing="0" cellPadding="0" border="0">
<tr>
<td width="24" rowSpan="5">
<img height="1" src="gfx/ab.gif" width="24" border="0"></td>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?