花了一些时间看了一下这本书,感觉python真是个极好入门的语言。本书的讲解很到位,不过就是在对一些简单知识点的讲解方面投入了过多的笔墨,太啰嗦了。
书中练习的源代码下载地址:
https://ehmatthes.github.io/pcc/
这是英文版的勘误表【网站:https://www.nostarch.com/pythoncrashcourse】:
Page 100: The line that reads:
alien_0['speed'] = fast
Should instead read:
alien_0['speed'] = 'fast'
Page 175: The line that reads:
def ElectricCar(Car):
Should instead read:
class ElectricCar(Car):
And the line that reads:
def fill_gas_tank():
Should instead read:
def fill_gas_tank(self):
Page 180: In car.py, the line that reads:
def __init__(self, battery_size=60):
Should instead read:
def __init__(self, battery_size=70):
Page 207: In "Try It Yourself" 10-6, TypeError should be ValueError.
Page 223: In the listing survey.py, in the definition marked with a (2), the line that reads:
print(question)
Should instead read:
print(self.question)
And in the definition marked with a (4), the line that reads:
for response in responses:
Should instead read:
for response in self.responses:
Page 227: The paragraph that begins "The method setUp()..." that ends with:
...and test_store_single_response() verifies that all three responses in self.responses can be stored correctly.
Should instead end with:
...and test_store_three_responses() verifies that all three responses in self.responses can be stored correctly.
Page 288: In game_stats.py, the line that reads:
def __init__(self, settings):
Should instead read:
def __init__(self, ai_settings):
Pages 429 and 453: The line that reads:
form = TopicForm(request.POST)
Should instead read:
form = TopicForm(data=request.POST)
You'll find more updates at the author's website here
书中练习的源代码和勘误表
对“书中练习的源代码和勘误表”的回应
《Python编程:从入门到实践》热门书评
-
书中练习的源代码和勘误表
3有用 0无用 HewaiNZY 2016-12-05
花了一些时间看了一下这本书,感觉python真是个极好入门的语言。本书的讲解很到位,不过就是在对一些简单知识点的讲解方面投入了过多的笔墨,太啰嗦了。书中练习的源代码下载地址:https://ehmatthes.github.io/pcc/这是英文版的勘误表【网站:https://www.nostar...
-
入门知识还是少了点
0有用 0无用 吖Dōng 2017-04-27
这本书后面的实践还是不错的,但是前面的入门可是看得一头雾水,个人认为还是核心编程才是真正适合打基础的书,毕竟这种跟着案例走的教材错过了很多基础内容,如果在入门的时候没有补上,到后面真正上手项目,各种查书籍才是最吃力的。相比而言,核心编程虽然很厚看起来很吃力,但是基础好了,等上手项目才知道什么是好的...
-
16.2制作世界人口地图:JSON格式遇到的问题
0有用 0无用 首席接锅王 2017-05-05
在写到数据可视化小项目时,一下两个部分有所变动,该模块会找不到:from pygal.i18n import COUNTRIESwm = pygal.Worldmap()解决方法:下载:pygal_maps_world-1.0.2.tar.gz,下载地址:https://pypi.python.or...
书名: Python编程:从入门到实践
作者: [美] 埃里克·马瑟斯
出版社: 人民邮电出版社
原作名: Python Crash Course
副标题: 从入门到实践
译者: 袁国忠
出版年: 2016-7-1
页数: 459
定价: CNY 89.00
装帧: 平装
ISBN: 9787115428028