上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页
摘要: 原文链接:http://ihipop.info/2010/10/1736.html 阅读全文
posted @ 2012-06-27 10:46 klobodnf 阅读(994) 评论(0) 推荐(0) 编辑
摘要: 符號名稱定義舉例讀法數學領域=等號x= y 表示 x 和 y 是相同的東西或其值相等。1+ 1= 2等於所有領域≠不等號x ≠ y 表示 x 和 y 不是相同的東西或其值不相等。1 ≠ 2不等於所有領域<>嚴格不等號x< y 表示 x 小於y。x> y 表示 x 大於y。3<45>4小於,大於序理論≤≥不等號x≤ y 表示 x 小於或等於y。x ≥ y 表示 x 大於或等於y。3≤4;5≤55≥4;5≥5小於等於,大於等於序理論+加號6 + 3 表示 6 加 3。6 + 3 = 9加算術−減號6 − 3 表示 6 減 3。6 − 3 = 3減算術負號−3 表 阅读全文
posted @ 2012-06-27 10:11 klobodnf 阅读(1190) 评论(0) 推荐(0) 编辑
摘要: 假设有矩形RECT1和RECT2、有八个顶点 1 bool test_collision__2(SDL_Rect *rect1, SDL_Rect *rect2) 2 { 3 int x1_1 = rect1->x; 4 int y1_1 = rect1->y; 5 int x1_2 = rect1->x + rect1->w; 6 int y1_2 = rect1->y; 7 int x1_3 = rect1->x; 8 int y1_3 = rect1->y + rect1->h; 9 int x1_4 = rect1->x + re. 阅读全文
posted @ 2012-06-25 18:29 klobodnf 阅读(5062) 评论(0) 推荐(0) 编辑
摘要: 如果说到把执行结果打印到文件中、迩一定会想起输出重定向符>或>>、只不过输出重定向只能够输出到文件或者屏幕中、无法同时输出、所以这时就有了tee这个工具了简单来说吧显示文件命令lsroot@ubuntu:~/test_dis# ls | tee log_filelog_filereadmeuploadutilities执行命令ls | tee log_file执行ls的同时使用管道把内容交给tee处理然后tee把ls的执行结果输出到屏幕的同时再输出到log_file文件中、如果log_file不存在则创建、存在则覆盖、如果迩想是添加到log_file的文件尾而不是覆盖、可以添 阅读全文
posted @ 2012-06-21 12:30 klobodnf 阅读(983) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/moinmoin/archive/2011/03/18/python-runtime-measuring.htmlhttp://docs.python.org/library/timeit.html 阅读全文
posted @ 2012-06-20 18:41 klobodnf 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 一开始用github还一头雾水、怎么会没有格式化的选项呢、原来是使用markdown标准语言、哈哈、http://wowubuntu.com/markdown/ 阅读全文
posted @ 2012-06-20 17:23 klobodnf 阅读(1468) 评论(0) 推荐(0) 编辑
摘要: http://migle.iteye.com/blog/573092 阅读全文
posted @ 2012-06-19 17:25 klobodnf 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 如:#define SDL_INIT_TIMER 0x00000001#define SDL_INIT_AUDIO 0x00000010#define SDL_INIT_VIDEO 0x00000020#define SDL_INIT_CDROM 0x00000100#define SDL_INIT_JOYSTICK 0x00000200#define SDL_INIT_NOPARACHUTE 0x00100000 /**< Don't catch fatal signals */#define SDL_INIT_... 阅读全文
posted @ 2012-06-18 15:31 klobodnf 阅读(2341) 评论(0) 推荐(0) 编辑
摘要: 写得非常的详细、莪就不细说了、http://www.cnblogs.com/huxi/archive/2010/07/04/1771073.html自己只组合了一个最通用的例子import reURL = 'http://10.188.53.247:8080/recommend/vav'pattern = re.compile(r'.*\/?')match = pattern.match(URL)if match: print match.group()else: print "None"如果文字匹配、就打印匹配字符、如果不匹配、便打印Non 阅读全文
posted @ 2012-06-18 14:25 klobodnf 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 本来还想动动笔写写的、不过这实在是太多人写过了、直接帖了帖、对于狠多程序还是非常有实际意义的、就算迩不想写win32的应用程序、迩写SDL或者写openGL也总算是个win32框架的程序吧、有了这个、就可以不管剩下的细节了、尽情的在SDL等等中挥舞吧注意一点就是一定要包含windows.h这个头文件、还有就是windows的main声明、其它也没什么了、int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)http://blog.csdn.net/hustsp 阅读全文
posted @ 2012-06-17 12:36 klobodnf 阅读(206) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页