Life is short, you need Python

摘要: rpm -qpl xxxxxx.rpm 1.怎么安装rpm软件包 rmp软件包的安装能使用程式rpm来完成。执行下面的命令 rpm -i your-package.rpm 其中your-package.rpm是你要安装的rpm包的文件名,一般置于当前目录下。 安装过程中可能出现下面的警告或提示: ... conflict with ... 可能是要安装的包里有一些文件可能会覆盖现有 的文件,缺省时... 阅读全文
posted @ 2010-08-04 10:38 runfox545 阅读(934) 评论(0) 推荐(0)
摘要: ***prerequisite***Install all softwares with root privilige1. Apache1.1 Apache installation1) tar zxvf httpd-2.2.15.tar.gz2) cd scrlib/apr3) ./configure --prefix=/usr/local/apr/ --enable-so --enable-d... 阅读全文
posted @ 2010-08-03 11:12 runfox545 阅读(690) 评论(2) 推荐(0)
摘要: ScmBugThe ScmBug project (http://www.mkgnu.net/?q=scmbug) aims to create a generic bridge between Software Content Management (SCM) systems and Bug tracking systems. It currently supports CVS and Subversion on the SCM side, and Bugzilla and Mantis on the Bug tracker side. There are two parts to ScmB 阅读全文
posted @ 2010-07-28 15:42 runfox545 阅读(808) 评论(0) 推荐(0)
摘要: Linux网络配置命令 Linux下网卡命名规律:eth0,eth1。第一块以太网卡,第二块。lo为环回接口,它的IP地址固定为127.0.0.1,掩码8位。它代表你的机器本身。1、ifconfig是查看网卡的信息ifconfig [Interface] Interface是可选项,如果不加此项,则显示系统中所有网卡的信息。如果添加此选项则显示所指定的网卡信息.例如:ifconfig eth0第... 阅读全文
posted @ 2010-07-28 13:37 runfox545 阅读(23781) 评论(0) 推荐(0)
摘要: 拿到澳洲永久居民的好与坏!为移民而留学的同学注意了!http://club.eduwo.com/thread-58832-1-1.html加拿大华人新移民的好与坏http://blog.sina.com.cn/s/blog_607a55700100ia1c.html 阅读全文
posted @ 2010-07-20 09:14 runfox545 阅读(219) 评论(0) 推荐(0)
摘要: 简介 Python 自1.5版本起增加了re 模块,它提供 Perl 风格的正则表达式模式。Python 1.5之前版本则是通过 regex 模块提供 Emecs 风格的模式。Emacs 风格模式可读性稍差些,而且功能也不强,因此编写新代码时尽量不要再使用 regex 模块,当然偶尔你还是可能在老代码里发现其踪影。 就其本质而言,正则表达式(或 RE)是一种小型的、高度专业化的编程语言,(在Pyt... 阅读全文
posted @ 2010-07-05 13:56 runfox545 阅读(419) 评论(0) 推荐(1)
摘要: Python中的splitlines用来分割行。当传入的参数为True时,表示保留换行符 \n。通过下面的例子就很明白了:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--mulLine="""Hello!!!WellcometoPython'sworl... 阅读全文
posted @ 2010-07-05 10:36 runfox545 阅读(563) 评论(0) 推荐(0)
摘要: 转换大小写和其他语言一样,Python为string对象提供了转换大小写的方法:upper() 和 lower()。还不止这些,Python还为我们提供了首字母大写,其余小写的capitalize()方法,以及所有单词首字母大写,其余小写的title()方法。函数较简单,看下面的例子:Code highlighting produced by Actipro CodeHighlighter (fr... 阅读全文
posted @ 2010-07-05 10:08 runfox545 阅读(502) 评论(0) 推荐(0)
摘要: 方法一,使用[::-1]:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--s='python'prints[::-1]方法二,使用reverse()方法:Code highlighting produced by Actipro CodeHighlig... 阅读全文
posted @ 2010-06-28 09:44 runfox545 阅读(392) 评论(0) 推荐(0)
摘要: 开始--运行--cmd 进入命令提示符 输入netstat -aon 即可看到所有连接的PID 之后在任务管理器中找到这个PID所对应的程序如果任务管理器中没有PID这一项,可以在任务管理器中选"查看"-"选择列" 经常,我们在启动应用的时候发现系统需要的端口被别的程序占用,如何知道谁占有了我们需要的端口,很多人都比较头疼,下面就介绍一种非常简单的方法,希望对大家有用假如我们需要确定谁占用了我们的... 阅读全文
posted @ 2010-06-25 12:34 runfox545 阅读(95825) 评论(4) 推荐(8)
白月黑羽 Python教程 白月黑羽Python