摘要: 将模块转换为一个python发布nester.py1- 如果为函数提供一个缺省值,这个函数就是可选的,如参数level = 02- end = "" 作为print()BIF的一个参数,会关闭其默认行为(即在输入中自动包含换行)1 def print_lol(the_list, indent = F... 阅读全文
posted @ 2013-11-09 15:01 galoishelley 阅读(215) 评论(0) 推荐(0) 编辑
摘要: D 不可中断 Uninterruptible sleep (usually IO)R 正在运行,或在队列中的进程S 处于休眠状态T 停止或被追踪Z 僵尸进程W 进入内存交换(从内核2.6开始无效)X 死掉的进程< 高优先级N 低优先级L 有些页被锁进内存s 包含子进程+ 位于后台的进程组;l 多线程,克隆线程multi-threaded (using CLONE_THREAD, like NPTL pthreads do)xin@xinU1004:~$ ps aux | grep hello.shxin 10998 0.0 0.0 3568 856 pts/0... 阅读全文
posted @ 2013-11-09 10:57 galoishelley 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 我们用gcc编译程序时,可能会用到“-I”(大写i),“-L”(大写l),“-l”(小写l)等参数,下面做个记录:例:gcc -o hello hello.c -I /home/hello/include -L /home/hello/lib -lworld上面这句表示在编译hello.c时:-I ... 阅读全文
posted @ 2013-11-09 10:53 galoishelley 阅读(187) 评论(0) 推荐(0) 编辑