
本网站不提供下载链接,喜欢看书的朋友请关注公众号:【lennylee的碎碎念】(lennyleede),首页回复:授人以渔,自动获取搜索资源的方法。
内容简介:
Python Crash Course is a fast-paced, thorough introduction to Python that will have you writing programs, solving problems, and making things that work in no time.
In the first half of the book, you’ll learn about basic programming concepts, such as lists, dictionaries, classes, and loops, and practice writing clean and readable code with exercises for each topic. You’ll also learn how to make your programs interactive and how to test your code safely before adding it to a project. In the second half of the book, you’ll put your new knowledge into practice with three substantial projects: a Space Invaders–inspired arcade game, data visualizations with Python’s super-handy libraries, and a simple web app you can deploy online.
As you work through Python Crash Course you’ll learn how to:
–Use powerful Python libraries and tools, including matplotlib, NumPy, and Pygal
–Make 2D games that respond to keypresses and mouse clicks, and that grow more difficult as the game progresses
–Work with data to generate interactive visualizations
–Create and customize Web apps and deploy them safely online
–Deal with mistakes and errors so you can solve your own programming problems
If you’ve been thinking seriously about digging into programming, Python Crash Course will get you up to speed and have you writing real programs fast. Why wait any longer? Start your engines and code!
Uses Python 2 and 3
作者简介:
Eric Matthes is a high school science and math teacher living in Alaska where he teaches Introduction to Python. He has been writing programs since he was five years old.
原文摘录:
在文件夹 Applications/Utilities 中,选择 Terminal,打开一个终端窗口;也可以按Command + 空格键,再输入 terminal 并按回车键。为确定是否安装了较新的 Python 版本,请执行命令 python3。很可能会出现一个消息框,询问你是否要安装命令行开发者工具。最好先安装 Python,再安装这些工具,因此请关闭该消息框。
如果输出表明已经安装了 Python 3.9 或更高的版本,可跳过下一小节,直接阅读“在终端会话中运行 Python 代码”。如果安装的是 Python 3.9 之前的版本,请按下一小节的说明安装最新的版本。
请注意,如果你使用的是 macOS,请将本书中所有的命令 python 都替换为 python3,以确保你使用的是 Python 3。在大多数 macOS 系统中,命令 python 要么指向供内部系统工具使用的过期 Python 版本,要么没有指向任何程序(在这种情况下,执行命令 python 将引发错误)。 (查看原文)
图灵新知
1 回复
3赞
2023-04-18 17:40:45
—— 引自章节:1.2 在各种操作系统中搭建Python编程
line_chart.x_labels = x_unique (查看原文)
楚国完了
3赞
2019-02-02 17:25:29
—— 引自第332页