-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Vamei/master
合并之前fork的代码
- Loading branch information
Showing
27 changed files
with
2,390 additions
and
70 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Python小题目 针对快速教程 | ||
|
||
|
||
|
||
|
||
作业的目的是帮助熟悉之前学习的内容: | ||
|
||
|
||
|
||
1. | ||
|
||
写一个程序,判断2008年是否是闰年。 | ||
|
||
写一个程序,用于计算2008年10月1日是这一年的第几天?(2008年1月1日是这一年的第一天) | ||
|
||
这些小题目是为了方便大家加深对Python理解而设计的。 | ||
|
||
|
||
|
||
2. | ||
|
||
有一个record.txt的文档,内容如下: | ||
```python | ||
# name, age, score | ||
|
||
tom, 12, 86 | ||
|
||
Lee, 15, 99 | ||
|
||
Lucy, 11, 58 | ||
|
||
Joseph, 19, 56 | ||
``` | ||
第一栏为姓名(name),第二栏为年纪(age),第三栏为得分(score) | ||
|
||
现在,写一个Python程序, | ||
|
||
1)读取文件 | ||
|
||
2)打印如下结果: | ||
|
||
得分低于60的人都有谁? | ||
|
||
谁的名字以L开头? | ||
|
||
所有人的总分是多少? | ||
|
||
3)姓名的首字母需要大写,该record.txt是否符合此要求? 如何纠正错误的地方? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Python快速教程总结 | ||
|
||
|
||
|
||
|
||
|
||
到现在为止,Python快速教程就到一段落。谢谢大家的鼓励和支持,特别是对其中错误的包容和指正。 | ||
|
||
|
||
|
||
在第一部分,基础部分中,除了一些基础知识,我们着力于建立对象的概念。在第二部分中,我们深入到许多实用并且常用的Python用法。如果只是想了解Python是什么,那么第一部分应该可以给出一个基本概念。加上第二部分的话,我们应该可以有足够的知识读懂Python程序,并编写一些应用。 | ||
|
||
我会在以后写一些选读性的随笔,以便对教程更进一步补充。 | ||
|
||
|
||
|
||
我还在考虑下一步在博客中写什么。Python依然有一个庞大的标准库可以展开。但标准库的讲解离不开对计算机原理和互联网原理的了解,很难以一个快速教程的方式呈现出来。但离开标准库,Python也显得很单薄。一个可能是,先写一个总体纲要,描述一下标准库各个包所包含的内容,以及可能的用途,不知是否可行? | ||
|
||
另外,最近看了一些Google Engine和Django的内容,觉得也不错。只可惜自己在这方面经验太浅,不知从何说起。 | ||
|
||
另一方面,我个人的Python经验也非常有限。希望能多参与到一些项目,以便能积累经验。 |
Oops, something went wrong.