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(
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:aiomsgView more presentations orUpload your own.
阅读全文
摘要:在python中怎么一行实现循环执行语句,就像ruby中的100.times { p 'xxxxxx' }这样的语句,想了一会好像没有想法ps: 脑袋僵化了,这个其实很简单嘛for i in range(100): print 'xxxxx'
阅读全文

浙公网安备 33010602011771号