2013年6月5日
摘要: o --batch, -B Print results using tab as the column separator, with each row on a new line. With this option, mysql does not use the history file. 阅读全文
posted @ 2013-06-05 16:46 语辰 阅读(343) 评论(0) 推荐(0) 编辑
摘要: -m module-name Searches sys.path for the named module and runs the correspond- ing .py file as a script. 阅读全文
posted @ 2013-06-05 16:41 语辰 阅读(612) 评论(0) 推荐(0) 编辑
摘要: $0 这个程式的执行名字 $n 这个程式的第n个参数值,n=1..9 $* 这个程式的所有参数 $# 这个程式的参数个数 $$ 这个程式的PID $! 执行上一个背景指令的PID $? 执行上一个指令的返回值 阅读全文
posted @ 2013-06-05 16:37 语辰 阅读(135) 评论(0) 推荐(0) 编辑
摘要: %5d ,左补空格%-5d,右补空格 阅读全文
posted @ 2013-06-05 16:26 语辰 阅读(324) 评论(0) 推荐(0) 编辑
摘要: setdefault(key[, default])If key is in the dictionary, return its value. If not, insert key with a value of default and return default. default defaults to None.如果键在字典中,返回这个键所对应的值。如果键不在字典中,向字典 中插入这个键,并且以default为这个键的值,并返回 default。default的默认值为None 阅读全文
posted @ 2013-06-05 15:40 语辰 阅读(707) 评论(0) 推荐(0) 编辑
摘要: python中的os.path.realpath(__file__),取的是脚本的完整路径[root@leexl ~]# cat tst.pyimport osRoot = (os.path.realpath(__file__))print Root[root@leexl ~]# python tst.py/root/tst.py 阅读全文
posted @ 2013-06-05 10:21 语辰 阅读(1465) 评论(0) 推荐(0) 编辑