Book Description
Learn Python 3 the Hard Way: A Very Simple Introduction to the Terrifyingly Beautiful World of Computers and Code (Zed Shaw’s Hard Way Series)
You Will Learn Python 3!
Zed Shaw has perfected the world’s best system for learning Python 3. Follow it and you will succeed—just like the millions of beginners Zed has taught to date! You bring the discipline, commitment, and persistence; the author supplies everything else.
In Learn Python 3 the Hard Way, you’ll learn Python by working through 52 brilliantly crafted exercises. Read them. Type their code precisely. (No copying and pasting!) Fix your mistakes. Watch the programs run. As you do, you’ll learn how a computer works; what good programs look like; and how to read, write, and think about code. Zed then teaches you even more in 5+ hours of video where he shows you how to break, fix, and debug your code—live, as he’s doing the exercises.
- Install a complete Python environment
- Organize and write code
- Fix and break code
- Basic mathematics
- Variables
- Strings and text
- Interact with users
- Work with files
- Looping and logic
- Data structures using lists and dictionaries
- Program design
- Object-oriented programming
- Inheritance and composition
- Modules, classes, and objects
- Python packaging
- Automated testing
- Basic game development
- Basic web development
It’ll be hard at first. But soon, you’ll just get it—and that will feel great! This course will reward you for every minute you put into it. Soon, you’ll know one of the world’s most powerful, popular programming languages. You’ll be a Python programmer.
This Book Is Perfect For
- Total beginners with zero programming experience
- Junior developers who know one or two languages
- Returning professionals who haven’t written code in years
- Seasoned professionals looking for a fast, simple, crash course in Python 3
Table of Contents
Exercise 0 The Setup
Exercise 1 A Good First Program
Exercise 2 Comments and Pound Characters
Exercise 3 Numbers and Math
Exercise 4 Variables and Names
Exercise 5 More Variables and Printing
Exercise 6 Strings and Text
Exercise 7 More Printing
Exercise 8 Printing, Printing
Exercise 9 Printing, Printing, Printing
Exercise 10 What Was That?
Exercise 11 Asking Questions
Exercise 12 Prompting People
Exercise 13 Parameters, Unpacking, Variables
Exercise 14 Prompting and Passing
Exercise 15 Reading Files
Exercise 16 Reading and Writing Files
Exercise 17 More Files
Exercise 18 Names, Variables, Code, Functions
Exercise 19 Functions and Variables
Exercise 20 Functions and Files
Exercise 21 Functions Can Return Something
Exercise 22 What Do You Know So Far?
Exercise 23 Strings, Bytes, and Character Encodings
Exercise 24 More Practice
Exercise 25 Even More Practice
Exercise 26 Congratulations, Take a Test!
Exercise 27 Memorizing Logic
Exercise 28 Boolean Practice
Exercise 29 What If
Exercise 30 Else and If
Exercise 31 Making Decisions
Exercise 32 Loops and Lists
Exercise 33 While Loops
Exercise 34 Accessing Elements of Lists
Exercise 35 Branches and Functions
Exercise 36 Designing and Debugging
Exercise 37 Symbol Review
Exercise 38 Doing Things to Lists
Exercise 39 Dictionaries, Oh Lovely Dictionaries
Exercise 40 Modules, Classes, and Objects
Exercise 41 Learning to Speak Object-Oriented
Exercise 42 Is-A, Has-A, Objects, and Classes
Exercise 43 Basic Object-Oriented Analysis and Design
Exercise 44 Inheritance versus Composition
Exercise 45 You Make a Game
Exercise 46 A Project Skeleton
Exercise 47 Automated Testing
Exercise 48 Advanced User Input
Exercise 49 Making Sentences
Exercise 50 Your First Website
Exercise 51 Getting Input from a Browser
Exercise 52 The Start of Your Web Game
中文:
书名:Learn Python 3 the Hard Way
以艰难的方式学习Python3:非常简单地介绍计算机和代码的可怕美丽的世界(Zed Shaw’;s Hard Way系列)
You Will Learn Python 3!
Zed Shaw已经完善了世界上最好的学习Python3的系统。遵循它,你就会成功–就像Zed迄今教过的数百万初学者一样!你带来了纪律、承诺和毅力;作者提供了其他一切。
In Learn Python 3 the Hard Way, 您将通过52个精心制作的练习来学习Python。读一读。准确地输入他们的代码。(禁止复制和粘贴!)改正你的错误。观看程序运行。在此过程中,您将学习计算机是如何工作的;什么是好的程序;以及如何阅读、编写和思考代码。然后,Zed在5个多小时的视频中教你更多,他在练习中向你展示如何破解、修复和调试你的代码。
- Install a complete Python environment
- Organize and write code
- Fix and break code
- 基础数学
- Variables
- Strings and text
- 与用户互动
- Work with files
- 循环与逻辑
- 使用列表和词典的数据结构
- Program design
- Object-oriented programming
- 传承与谱写
- 模块、类和对象
- Python打包
- 自动化测试
- Basic game development
- 基本的Web开发
一开始会很难。但很快,你就会得到它–那会感觉很棒!你在这门课上投入的每一分钟都会得到回报。很快,您就会知道世界上最强大、最流行的编程语言之一。你将成为一名Python程序员。
This Book Is Perfect For
- 完全没有编程经验的初学者
- Junior developers who know one or two languages
- 多年未编写代码的归国专业人士
- 经验丰富的专业人员正在寻找快速、简单、速成的Python3课程
目录表
练习0设置
练习1:好的第一个计划
Exercise 2 Comments and Pound Characters
练习3数字和数学
Exercise 4 Variables and Names
练习5更多变量和打印
练习6字符串和文本
Exercise 7 More Printing
练习8打印,打印
练习9打印、打印、打印
练习10那是什么?
练习11提问
Exercise 12 Prompting People
练习13参数,拆包,变量
Exercise 14 Prompting and Passing
Exercise 15 Reading Files
练习16阅读和写文件
练习17更多文件
练习18名称、变量、代码、函数
练习19函数和变量
练习20函数和文件
练习21函数可以返回某些内容
练习22到目前为止,你知道什么?
练习23字符串、字节和字符编码
多做24次练习
练习25更多的练习
Exercise 26 Congratulations, Take a Test!
练习27记忆逻辑
Exercise 28 Boolean Practice
练习29如果
Exercise 30 Else and If
Exercise 31 Making Decisions
练习32循环和列表
Exercise 33 While Loops
练习34访问列表的元素
演练35个分支机构和职能
练习36设计和调试
练习37复习符号
练习38根据清单做事情
练习39本词典,哦可爱的词典
Exercise 40 Modules, Classes, and Objects
Exercise 41 Learning to Speak Object-Oriented
练习42 IS-A、HAS-A、对象和类
练习43面向对象的基本分析和设计
Exercise 44 Inheritance versus Composition
练习45:你做了一个游戏
练习46 A项目框架
练习47自动化测试
练习48高级用户输入
练习49造句
练习50你的第一个网站
Exercise 51 Getting Input from a Browser
练习52网络游戏的开始
评论前必须登录!
注册