Skip to content

Commit ffeb5c9

Browse files
committed
update format & add guide
1 parent 11665b0 commit ffeb5c9

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@
66
- Python 练习册,每天一个小程序。注:将 Python 换成其他语言,大多数题目也试用
77
- 不会出现诸如「打印九九乘法表」、「打印水仙花」之类的题目
88
- 欢迎大家 Pull Request 出题目,贴代码(Gist、Blog皆可):-)
9+
- 欢迎解答, 并发送 pull request 到 [Show-Me-the-Code](https://github.com/Show-Me-the-Code/python)
910

1011
> Talk is cheap. Show me the code.--Linus Torvalds
1112
1213
----------
13-
14+
1415
**第 0000 题:**将你的 QQ 头像(或者微博头像)右上角加上红色的数字,类似于微信未读信息数量那种提示效果。
1516
类似于图中效果
1617

1718
![头像](http://i.imgur.com/sg2dkuY.png?1)
1819

1920
**第 0001 题:**做为 Apple Store App 独立开发者,你要搞限时促销,为你的应用**生成激活码**(或者优惠券),使用 Python 如何生成 200 个激活码(或者优惠券)?
2021

21-
**第 0002 题**:将 0001 题生成的 200 个激活码(或者优惠券)保存到 **MySQL** 关系型数据库中。
22+
**第 0002 题**:将 0001 题生成的 200 个激活码(或者优惠券)保存到 **MySQL** 关系型数据库中。
2223

23-
**第 0003 题:**将 0001 题生成的 200 个激活码(或者优惠券)保存到 **Redis** 非关系型数据库中。
24+
**第 0003 题:**将 0001 题生成的 200 个激活码(或者优惠券)保存到 **Redis** 非关系型数据库中。
2425

2526
**第 0004 题:**任一个英文的纯文本文件,统计其中的单词出现的个数。
2627

@@ -38,7 +39,7 @@
3839

3940
![字母验证码](http://i.imgur.com/aVhbegV.jpg)
4041

41-
- [阅读资料](http://stackoverflow.com/questions/2823316/generate-a-random-letter-in-python)
42+
- [阅读资料](http://stackoverflow.com/questions/2823316/generate-a-random-letter-in-python)
4243

4344
**第 0011 题:** 敏感词文本文件 filtered_words.txt,里面的内容为以下内容,当用户输入敏感词语时,则打印出 Freedom,否则打印出 Human Rights。
4445

@@ -53,7 +54,7 @@
5354
love
5455
sex
5556
jiangge
56-
57+
5758
**第 0012 题:** 敏感词文本文件 filtered_words.txt,里面的内容 和 0011题一样,当用户输入敏感词语,则用 星号 * 替换,例如当用户输入「北京是个好城市」,则变成「**是个好城市」。
5859

5960
**第 0013 题:** 用 Python 写一个爬图片的程序,爬 [这个链接里的日本妹子图片 :-)](http://tieba.baidu.com/p/2166231880)
@@ -88,7 +89,7 @@
8889
**第 0016 题:** 纯文本文件 numbers.txt, 里面的内容(包括方括号)如下所示:
8990

9091
[
91-
[1, 82, 65535],
92+
[1, 82, 65535],
9293
[20, 90, 13],
9394
[26, 809, 1024]
9495
]
@@ -104,7 +105,7 @@
104105
<?xml version="1.0" encoding="UTF-8"?>
105106
<root>
106107
<students>
107-
<!--
108+
<!--
108109
学生信息表
109110
"id" : [名字, 数学, 语文, 英文]
110111
-->
@@ -116,14 +117,14 @@
116117
</students>
117118
</root>
118119

119-
- [阅读资料](http://www.cnblogs.com/skynet/archive/2013/05/06/3063245.html) 腾讯游戏开发 xml 和 Excel 相互转换
120+
- [阅读资料](http://www.cnblogs.com/skynet/archive/2013/05/06/3063245.html) 腾讯游戏开发 xml 和 Excel 相互转换
120121

121122
**第 0018 题:** 将 第 0015 题中的 city.xls 文件中的内容写到 city.xml 文件中,如下所示:
122123

123124
<?xmlversion="1.0" encoding="UTF-8"?>
124125
<root>
125126
<citys>
126-
<!--
127+
<!--
127128
城市信息
128129
-->
129130
{
@@ -141,16 +142,16 @@
141142
<?xml version="1.0" encoding="UTF-8"?>
142143
<root>
143144
<numbers>
144-
<!--
145+
<!--
145146
数字信息
146147
-->
147-
148+
148149
[
149150
[1, 82, 65535],
150151
[20, 90, 13],
151152
[26, 809, 1024]
152153
]
153-
154+
154155
</numbers>
155156
</root>
156157

@@ -162,4 +163,4 @@
162163

163164
- 阅读资料 [Hashing Strings with Python](http://www.pythoncentral.io/hashing-strings-with-python/)
164165

165-
- 阅读资料 [Python's safest method to store and retrieve passwords from a database](http://stackoverflow.com/questions/2572099/pythons-safest-method-to-store-and-retrieve-passwords-from-a-database)
166+
- 阅读资料 [Python's safest method to store and retrieve passwords from a database](http://stackoverflow.com/questions/2572099/pythons-safest-method-to-store-and-retrieve-passwords-from-a-database)

0 commit comments

Comments
 (0)