设为首页收藏本站

EPS数据狗论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 727|回复: 0

[Python] 《Learning to Program with Python 》

[复制链接]

93

主题

3169

金钱

3777

积分

中级用户

发表于 2018-11-7 15:22:19 | 显示全部楼层 |阅读模式

《Learning to Program with Python 》
pdf
Contents
Preface v
1 Not all snakes will squish you 1
1.1 A Few Words About Language . . . . . . . . . . . . . . . . . . . . . 2
1.2 The Order of Non-venomousConstricting Serpentes. . . . . . . . . . . . 3
1.3 Your first Python program . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 Your Second Python program. . .the same again? . . . . . . . . . . . . 6
2 8 multiplied by 3.57 equals. . . 9
2.1 Use of brackets and “Order of Operations” . . . . . . . . . . . . . . . 11
2.2 There’s nothing so fickle as a variable . . . . . . . . . . . . . . . . . . 13
2.3 Using Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.4 A Piece of String? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.5 Tricks with Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.6 Not quite a shopping list . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.7 Tuples and Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.8 Things to try . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3 Turtles, and other slow moving creatures 25
3.1 Things to try . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4 How to ask a question 33
4.1 Do this. . . or ELSE!!! . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
4.2 Do this. . . or do this. . . or do this. . . or ELSE!!! . . . . . . . . . . . . 35
4.3 Combining conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
4.4 Emptiness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
4.5 What’s the difference. . .? . . . . . . . . . . . . . . . . . . . . . . . . . 38
5 Again and again 41
5.1 When is a block not square? . . . . . . . . . . . . . . . . . . . . . . . 44
5.2 While we’re talking about looping. . . . . . . . . . . . . . . . . . . . . 50
5.3 Things to try . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6 Sort of like recycling. . . 53
6.1 Bits and Pieces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
6.2 Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
6.3 Things to try . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
7 A short chapter about Files 63
8 Turtles galore 65
8.1 Colouring in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
8.2 Darkness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
8.3 Filling things . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
8.4 Things to try . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
9 A bit graphic 81
9.1 Quick Draw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
9.2 Simple Drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
9.3 Drawing Boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
9.4 Drawing Arcs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
9.5 Drawing Ovals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
9.6 Drawing Polygons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
9.7 Drawing Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
9.8 Basic Animation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
9.9 Reacting to events. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
10 Where to go from here 103
A Python Keywords 105
B Built-in Functions 119
C A Few Python Modules 129
D Answers to “Things to try” 139

Learning To Program With Python 3, Win-v0.7.7 (2007).pdf

1.35 MB, 下载次数: 0

售价: 3 金钱  [记录]  [购买]

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

客服中心
关闭
在线时间:
周一~周五
8:30-17:30
QQ群:
653541906
联系电话:
010-85786021-8017
在线咨询
客服中心

意见反馈|网站地图|手机版|小黑屋|EPS数据狗论坛 ( 京ICP备09019565号-3 )   

Powered by BFIT! X3.4

© 2008-2028 BFIT Inc.

快速回复 返回顶部 返回列表