Tekkaman

导航

 

2013年9月12日

摘要: [python之daemon线程] A thread can be flagged as a “daemon thread”. The significance of this flag is that the entire Python program exits when only daemon 阅读全文
posted @ 2013-09-12 17:05 Tekkaman 阅读(1399) 评论(0) 推荐(0)
 
摘要: [Python之ConfigParser] ConfigParser是一个读取/写入类似于windows ini的配置文件的类. 参考:http://blog.chinaunix.net/uid-25890465-id-3312861.html 官方文档:http://docs.python.org/2.7/library/configparser.html#ConfigParser.ConfigParser.get 阅读全文
posted @ 2013-09-12 16:18 Tekkaman 阅读(1152) 评论(0) 推荐(0)
 
摘要: [pdb调试] 前置技能: os.getcwd():获取当前工作目录。 os.chdir():切换工作目录。 运行 python -m pdb myscript.py (Pdb) 会自动停在第一行,等待调试,这时你可以看看 帮助 (Pdb) h 说明下这几个关键 命令 >断点设置 ... 阅读全文
posted @ 2013-09-12 15:28 Tekkaman 阅读(512) 评论(0) 推荐(0)
 
摘要: [ps命令] man上写到,使用ax/axu来查看当前系统上所有的进程. 其中, 单独使用a意味着列出所有与terminal关联的进程, 与x组合,则意味着显示本机所有进程. this option causes ps to list all processes with a terminal (tty), or to listall processes when used together with the x option. 另外, 单独使用x意味着列出你的所有进程, 与a组合,则意味着显示本机所有进程. this option causes ps to list a... 阅读全文
posted @ 2013-09-12 14:32 Tekkaman 阅读(241) 评论(0) 推荐(0)
 
摘要: 【SVN常用命令】1、查看命令帮助: svn help xxx, 如svn help revert2、还原当前目录下所有文件: svn revert -R .3、查看当前路径下的SVN文件详细信息:svn ls -v4、只显示repo中文件的变化状态:svn st -q5、控制log长度:svn l... 阅读全文
posted @ 2013-09-12 14:02 Tekkaman 阅读(796) 评论(0) 推荐(0)
 
摘要: [Python Modules] 1. a module is a python source file. 2. a package is a directory with a __init__.py file within it. 1) 如果目录下没有__init__.py文件, 则python不 阅读全文
posted @ 2013-09-12 13:54 Tekkaman 阅读(380) 评论(0) 推荐(0)