08 2011 档案

摘要:#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> int main(void) { fd_set rfds; struct timeval tv; int retval; int rof = open("aa.tt", O_RDONLY); printf( 阅读全文
posted @ 2011-08-23 17:47 酱油哥 阅读(168) 评论(0) 推荐(0)
摘要:from: http://onlypython.group.iteye.com/group/wiki/1516-use-cherrypy-as-django-s-development-server该多线程是指多线程development server1.修改Django自带的Development Server为多线程模式,这其实只需要改几行代码就可以了。(详见http://code.djangoproject.com/ticket/3357)打开文件 django/core/servers/basehttp.py第10行:from BaseHTTPServer import BaseHTT 阅读全文
posted @ 2011-08-23 15:35 酱油哥 阅读(2793) 评论(0) 推荐(1)
摘要:function sayColor(spre, ssuf) {alert(spre + this.color + ssuf);}; var obj = new Object(); obj.color = 'red'; sayColor.call(obj, "this is ", " , a very nice"); # this is red a very nice sayColor( "this is ", " , a very nice"); # this is undefined a very 阅读全文
posted @ 2011-08-23 13:12 酱油哥 阅读(174) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2011-08-23 11:15 酱油哥 阅读(110) 评论(0) 推荐(0)
摘要:aiomsgView more presentations orUpload your own. 阅读全文
posted @ 2011-08-03 23:55 酱油哥 阅读(115) 评论(0) 推荐(0)
摘要:在python中怎么一行实现循环执行语句,就像ruby中的100.times { p 'xxxxxx' }这样的语句,想了一会好像没有想法ps: 脑袋僵化了,这个其实很简单嘛for i in range(100): print 'xxxxx' 阅读全文
posted @ 2011-08-03 22:28 酱油哥 阅读(177) 评论(0) 推荐(0)