📄 errata for practical python.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0056)http://apress.com/book/errataDisplay.html?bID=93&sID=651 -->
<HTML><HEAD><TITLE>Errata for Practical Python</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY><IMG height=10 src="Errata for Practical Python.files/c.gif"
width=1><BR><FONT face="verdana, sans-serif" size=2>
<STYLE type=text/css>BODY {
FONT: 12px verdana, arial, helvetica, sans-serif; COLOR: #333; BACKGROUND-COLOR: white
}
CODE {
FONT-SIZE: 12px; FONT-FAMILY: verdana, arial, helvetica, sans-serif
}
.error {
COLOR: red
}
.correction {
COLOR: green
}
.quote {
TEXT-INDENT: 1cm
}
</STYLE>
<H1>Errata for Practical Python</H1>
<H2>Chapter 1</H2>
<P>On page 26,</P>
<P class=quote>String<SPAN class=error>a</SPAN> are values [...]</P>
<P>should be</P>
<P class=quote>String<SPAN class=correction>s</SPAN> are values [...]</P>
<H2>Chapter 2</H2>
<P>On page 111,</P>
<P class=quote>[...] just change <CODE>while not name</CODE> to <SPAN
class=error><CODE>while name.isspace()</CODE></SPAN>.</P>
<P>should be</P>
<P class=quote>[...] just change <CODE>while not name</CODE> to <SPAN
class=correction><CODE>while not name or name.isspace()</CODE></SPAN>.</P>
<P>or, alternatively,</P>
<P class=quote>[...] just change <CODE>while not name</CODE> to <SPAN
class=correction><CODE>while not name.strip()</CODE></SPAN>.</P>
<H2>Appendix B</H2>
<P>On page 580, in Table B-6, the description of the method
<CODE>startswith</CODE> uses the word <SPAN class=error>suffix</SPAN> where it
should use the word <SPAN class=correction>prefix</SPAN>. The description should
read:</P>
<P class=quote>Checks whether <EM>string</EM> starts with <EM><SPAN
class=correction>prefix</SPAN></EM>, optionally restricting the matching with
the given indices <EM>start</EM> and <EM>end</EM></P>
<H2>Index</H2>
<P>On Page 593,</P>
<P class=quote><SPAN class=error>\ \;</SPAN> (backticks), converting a Python
value to a string with, 29</P>
<P>should be</P>
<P class=quote><SPAN class=correction>` `</SPAN> (backticks), converting a
Python value to a string with, 29</P>
<P>Similarly, on page 594,</P>
<P class=quote>backticks (<SPAN class=error>\\</SPAN>), converting objects to
string representation with,</P>
<P>should be:</P>
<P class=quote>backticks (<SPAN class=correction>``</SPAN>), converting objects
to string representation with,</P></FONT></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -