Python编程从入门到实践试买阅读体验
花了一些时间看了一下这本书,感觉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
最好的入门书之一吧
2016年出版的书,豆瓣评分高达8.6,基于 Python3.5 同时也兼顾 Python2.7 ,作者推荐的编辑器 Geany 我没用过,不好做评论,不过个人推荐使用 Pycharm 或者 Sublime。
书中涵盖的内容是比较精简的,没有艰深晦涩的概念,最重要的是每个小结都附带有”动手试一试”环节,学编程最佳的方式就是多动手、多动脑。
很多初学者看完书之后不知道下一步怎么办,快速提高编程能力的最佳途径就是做项目,而这本书巧妙地安排了三个实践项目,一个游戏、一个Web和一个数据可视化项目,如果你跟着教程把项目做下来,相信你的编程功底绝对会上升一个层次。
作者还专门安排了一个章节是讲单元测试,会写单元测试是初级程序员进阶到高级程序员的必备技能。
此外,附录中还提到了git,作为延伸阅读,最后还告诉你遇到问题该如何去解决。
推荐理由:
第一:书的标题中肯,不偏不倚,正如书的内容一样,从入门到实践,不像那种标题党动不动就是《XXX从入门到精通》
第二:全书都在灌输一个理念:编写可读、清晰的代码。很多初学者在刚开始没有形成良好的编程习惯,代码非常个性化,以至于除了机器能读懂代码,没人读得懂,这给后期的维护带来巨大隐患
第三:本书的翻译质量很高,向作者和译者致敬。
★★★★★ 前面12章啃完,具备最基本的python知识,目标是读懂编程。其实python 最强大的是库。对我来说numpy ,pandas,keras,sklearning是后面的学习重点,本书基本没怎么讲。15,16,17,18章后面应用过程中可以随时参考。学习过程中需要很多助手,比如CSDN。
这是一本完美的书
入门中的入门书籍
这本书就如书名描述的一样,从入门到实践,上到稍有编程基础的人,下到10岁的零基础的少年,都适合。我觉得自学编程选书一定要选择一本对0编程基础友好的,毕竟0基础的人最重要的还是兴趣的培养,如果一本书太过枯燥乏味,内容太过深入,容易产生厌烦和挫败心理,那基本就学不好了。
比如第一章,它从教你如何安装开始,然后能够自己运行第一个程序:输出hello world,无论你学习哪一门语言,你首先要学的都是让它在屏幕上输出“hello world”程序
使用Python编写hello world 程序只需要一行代码
print("Hello world!")
print("Hello world!")
Copyright © 2010-2022 All Rights Reserved