File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 21
21
4 . [ 上线 Python 应用仅需一条命令的开源框架:Zappa] ( contents/Python/Zappa/content.md )
22
22
5 . [ 让你的程序炫起来!少有人知道但超酷的 Python 进度条开源库] ( contents/Python/alive-progress/content.md )
23
23
6 . [ 一款开源在线文档,助道友领悟 Django 之“道”] ( contents/Python/MrDoc/content.md )
24
+ 7 . [ 用 Python 写个贪吃蛇,保姆级教程!] ( contents/Python/snake/content.md )
25
+
24
26
25
27
#### Java 系列
26
28
Original file line number Diff line number Diff line change 1
- # 一起用 Python 写个贪吃蛇?
1
+ # 用 Python 写个贪吃蛇,保姆级教程!
2
2
3
3
> 本文基于 Windows 环境开发,适合 Python 新手
4
4
5
+ ![ ] ( images/cover.png )
6
+
5
7
HelloGitHub 推出的[ 《讲解开源项目》] ( https://github.com/HelloGitHub-Team/Article ) 系列,本期介绍 Python 练手级项目——贪吃蛇!
6
8
7
9
原本想推荐一个贪吃蛇的开源项目:python-console-snake,但由于该项目最近一次更新是 8 年前,而且在运行的时候出现了诸多问题。索性我就动手用 Python 重新写了一个贪吃蛇游戏。
@@ -535,4 +537,4 @@ g.quit()
535
537
## 三、结尾
536
538
到这里如何编写一个贪吃蛇游戏就结束啦!实际上** 编写一个小游戏不难,对于新手来讲难点在于如何去组织程序的结构** 。我所实现的只是其中的一种方法,每个人对于游戏结构理解不同所写出的代码也会不同。但无论怎样,我们都应该遵循一个目标:** 尽量遵循代码规范,养成良好的风格** 。这样不仅利于别人阅读你的代码,也利于自己排查 bug、增加新的功能。
537
539
538
- 最后,感谢您的阅读。这里是 HelloGitHub 分享 GitHub 上有趣、入门级的开源项目。您的每个点赞、留言、分享都是对我们最大的鼓励,笔芯~
540
+ 最后,感谢您的阅读。这里是 HelloGitHub 分享 GitHub 上有趣、入门级的开源项目。您的每个点赞、留言、分享都是对我们最大的鼓励!
You can’t perform that action at this time.
0 commit comments