上一页 1 2 3 4 5 6 ··· 82 下一页
摘要: 删除当前目录下所有的*.o文件:find . -name "*.o" -exec rm -f {} \; 阅读全文
posted @ 2014-06-17 22:08 greencolor 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Make命令本身可带有四种参数:标志、宏定义、描述文档名和目标文档名。其标准形式为: Make [flags] [macro definitions] [targets] Unix系统下标志位flags选项及其含义为: -f file 指定file文档为描述文档,假如file参数为"... 阅读全文
posted @ 2014-06-17 19:01 greencolor 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 1、list命令在gdb中运行list命令(缩写l)可以列出代码,list的具体形式包括: •list ,显示程序第linenum行周围的源程序2、run命令在gdb中,运行程序使用run命令。在程序运行前,我们可以设置如下4方面的工作环境: •程序运行参数3、break命令在gdb中用break... 阅读全文
posted @ 2014-06-15 15:02 greencolor 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 在python中使用pdb模块可以进行调试import pdbpdb.set_trace()也可以使用python -m pdb mysqcript.py这样的方式(Pdb) 会自动停在第一行,等待调试,这时你可以看看 帮助(Pdb) h 说明下这几个关键 命令>断点设置 (Pdb)b 10 #断... 阅读全文
posted @ 2014-06-15 14:01 greencolor 阅读(546) 评论(0) 推荐(0) 编辑
摘要: 一、find 命令格式1、find命令的一般形式为;find pathname -options [-print -exec -ok ...]2、find命令的参数;pathname: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。-print: find命令将匹配的... 阅读全文
posted @ 2014-06-14 12:38 greencolor 阅读(323) 评论(0) 推荐(0) 编辑
摘要: from __future__ import division导入python未来支持的语言特征division(精确除法),当我们没有在程序中导入该特征时,"/"操作符执行的是截断除法(Truncating Division),当我们导入精确除法之后,"/"执行的是精确除法,如下所示:------... 阅读全文
posted @ 2014-04-19 20:43 greencolor 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Print a line for each of the integers from 0 to 10 except 5:for {set x 0} {$x<10} {incr x} { if {$x == 5} { continue } puts "x is $x"} 阅读全文
posted @ 2014-03-01 15:31 greencolor 阅读(108) 评论(0) 推荐(0) 编辑
摘要: [subst] performs the first stage of Tcl script evalution, performing variable substitution and/or command substitution, but stops short of evaluating the commands contained at the top level of the script. 阅读全文
posted @ 2014-02-04 13:05 greencolor 阅读(182) 评论(0) 推荐(0) 编辑
摘要: foreach lstnr [array name futureRequests] {set fullRequest $futureRequests($lstnr)puts "$lstnr: $fullRequest"} 阅读全文
posted @ 2014-02-04 12:41 greencolor 阅读(171) 评论(0) 推荐(0) 编辑
摘要: appendputs one string directly on the end of another, without adding any extra characters beyond those in the incoming variables.lappendtreats the target string as a list, and will usually add an extra space on the end of it prior to appending the new item so that the result is also a list with ONE 阅读全文
posted @ 2013-12-30 23:38 greencolor 阅读(575) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 82 下一页