Skip to content

Commit 41ae0c0

Browse files
committed
add cover
1 parent 707b169 commit 41ae0c0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Diff for: README.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
4. [上线 Python 应用仅需一条命令的开源框架:Zappa](contents/Python/Zappa/content.md)
2222
5. [让你的程序炫起来!少有人知道但超酷的 Python 进度条开源库](contents/Python/alive-progress/content.md)
2323
6. [一款开源在线文档,助道友领悟 Django 之“道”](contents/Python/MrDoc/content.md)
24+
7. [用 Python 写个贪吃蛇,保姆级教程!](contents/Python/snake/content.md)
25+
2426

2527
#### Java 系列
2628

Diff for: contents/Python/snake/content.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# 一起用 Python 写个贪吃蛇
1+
# Python 写个贪吃蛇,保姆级教程!
22

33
> 本文基于 Windows 环境开发,适合 Python 新手
44
5+
![](images/cover.png)
6+
57
HelloGitHub 推出的[《讲解开源项目》](https://github.com/HelloGitHub-Team/Article)系列,本期介绍 Python 练手级项目——贪吃蛇!
68

79
原本想推荐一个贪吃蛇的开源项目:python-console-snake,但由于该项目最近一次更新是 8 年前,而且在运行的时候出现了诸多问题。索性我就动手用 Python 重新写了一个贪吃蛇游戏。
@@ -535,4 +537,4 @@ g.quit()
535537
## 三、结尾
536538
到这里如何编写一个贪吃蛇游戏就结束啦!实际上**编写一个小游戏不难,对于新手来讲难点在于如何去组织程序的结构**。我所实现的只是其中的一种方法,每个人对于游戏结构理解不同所写出的代码也会不同。但无论怎样,我们都应该遵循一个目标:**尽量遵循代码规范,养成良好的风格**。这样不仅利于别人阅读你的代码,也利于自己排查 bug、增加新的功能。
537539

538-
最后,感谢您的阅读。这里是 HelloGitHub 分享 GitHub 上有趣、入门级的开源项目。您的每个点赞、留言、分享都是对我们最大的鼓励,笔芯~
540+
最后,感谢您的阅读。这里是 HelloGitHub 分享 GitHub 上有趣、入门级的开源项目。您的每个点赞、留言、分享都是对我们最大的鼓励!

Diff for: contents/Python/snake/images/cover.png

51 KB
Loading

0 commit comments

Comments
 (0)