摘要: 基于pygame模块开发,参考《Python编程:从入门到实践》。 游戏本身难度不大,纯新手练习,可以学习的是其中模块化的编程思想和他的代码重构。(关于代码重构书中讲的比较详细) 我已经打包整理好,听说原书也是配套代码的,这个是我自己敲得,做了点小修改。 下载后解压,打开项目,选好已经安装了pyga 阅读全文
posted @ 2022-04-11 16:36 阿大古 阅读(84) 评论(1) 推荐(0)
摘要: 1 #include <string> 2 #include <iostream> 3 using namespace std; 4 5 typedef int DataType; 6 7 class Node 8 { 9 public: 10 DataType data; 11 Node *nex 阅读全文
posted @ 2022-03-30 21:06 阿大古 阅读(40) 评论(0) 推荐(0)
摘要: 1 <details> 2 <summary>点击查看代码</summary> 3 4 ``` 5 #include <string> 6 #include <iostream> 7 using namespace std; 8 9 typedef int DataType; 10 11 class 阅读全文
posted @ 2022-03-30 21:02 阿大古 阅读(59) 评论(0) 推荐(0)