从上看到的例子,小人在石头上跑跳直到达到门
我做了以下改进:
1. 模块化:
helper.py 含有基类以及碰撞检测函数man.py 小人door,py 门stone.py 脚踩的石头game.py 主函数,初始化canvas,游戏主循环
2. 修复一个Bug,原先人踩在石头上会掉下来
if btm and falling and self.y == 0 and (co....
分类:
编程语言 时间:
2014-11-29 13:19:22
阅读次数:
407
全名和例子如下:System Area Network(系统域网):主机及外设Local Area Network(局域网):以太网Metropolitan Area Network(城域网):WiMaxWide Area Network(广域网):因特网,X.25来道题:Which network...
分类:
其他好文 时间:
2014-11-28 08:43:35
阅读次数:
180
命令不要死记硬背,这里我列出一些常用的命令,并不给解释,目的只是为了自己以后去回忆。想不起的随便上网一查就可以了
一、文件系统及相关操作
1、ls -a ; ls -l
; ls al
2、cat
3、man ls或者... ls --help
4、cd
5、pwd
6、file
7、echo
8、mkdir/rmdir
9、cat
10、cp, mv, ...
分类:
系统相关 时间:
2014-11-28 06:26:08
阅读次数:
246
早期的unix系统把帮助文档的8个部分都集中在一起,随着页数的增多,现在按照主题放在不同的手册中。1CommandsThosecommands
thatcanbeexecutedbytheuserfromwithinashell.1PPosixCommands2SystemcallsThosefunctionswhichmustbeperformedbythekernel.3LibrarycallsMostofthelib..
分类:
其他好文 时间:
2014-11-27 18:51:07
阅读次数:
218
Following 8 sections are available in the man page.General commandsSystem callsC library functionsSpecial files (usually devices, those found in /dev)...
分类:
其他好文 时间:
2014-11-26 20:29:00
阅读次数:
164
fedora20,安装yum install ncurses-devel编译时:-lncurses头文件:#include参考:man ncurses \linux程序设计一,屏幕1, 以initscr()开始,以endwin();结束 WINDOW *initscr(void); //初始化 .....
分类:
系统相关 时间:
2014-11-25 12:20:00
阅读次数:
328
有一个两分的case出现段错误,真是没救了,估计是要写bfs的形式,可能栈溢出了#include #include #include #include #include #include using namespace std;int G[1001][1001] = {0};class Man {p...
分类:
其他好文 时间:
2014-11-25 00:05:49
阅读次数:
231
一般在我们的键盘上都有一个 printscreensysrq 键,在windows系统下,我们按下这个键就可以截屏了,截的是整个屏幕,在linux下我试了一下,也试可以的也是截取全屏,也是linux自带的一个截屏软件,gnome-screenshot,我们可以用man查看这条命令的具体用法.
这里我们就可以看到这条命令的一些基本用法.
选项
-w 抓取当前活动窗口
-...
分类:
系统相关 时间:
2014-11-24 11:53:38
阅读次数:
194
TIANKENG’s rice shop
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 345 Accepted Submission(s): 71
Problem Description
TIANKENG man...
分类:
其他好文 时间:
2014-11-24 10:17:51
阅读次数:
240
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is not a pa...
分类:
其他好文 时间:
2014-11-24 10:10:28
阅读次数:
152