摘要: 1.getopt()表头文件 #include<unistd.h>定义函数 int getopt(int argc,char * const argv[ ],const char * optstring);extern char *optarg;extern int optind, opterr, optopt;optstring表示可选参数,加冒号表示后面必须跟参数,参数复制给optarg。 阅读全文
posted @ 2012-12-08 21:17 孤独的小马哥 阅读(300) 评论(0) 推荐(0)
摘要: 1.准备工作: 1>.安装gcc; 2>.安装python库yum –y install python-devel libevent libevent-devel 3>.从官网下载gevent包,解压后进入目录:sudo python setup.py install 阅读全文
posted @ 2012-12-08 18:44 孤独的小马哥 阅读(242) 评论(0) 推荐(0)