
python
文章平均质量分 57
laiahu
喜欢打篮球等
展开
-
configure编译时,出现 configure: error: C compiler cannot create executables错误解决
文章来源: http://blog.youkuaiyun.com/tyyhong/article/details/4266749 我们在编译软件的时候,是不是经常遇到下面的错误信息呢? checking build system type... i686-pc-linu转载 2011-08-04 18:24:21 · 5641 阅读 · 0 评论 -
(转)Python格式化时间戳
好的: http://docs.python.org/library/datetime.html?highlight=datetime#datetime.tzinfo来源:http://hi.baidu.com/mvp_xuan/blog/item/1a34cf0830581b9ed0581b74.html 前因:需要在google的服务器上读取一个task list,结果发现转载 2012-04-28 15:39:47 · 12504 阅读 · 1 评论 -
python mail example
来源:http://docs.python.org/library/email-examples.htmlhttp://www.tutorialspoint.com/python/python_sending_email.htmhttp://www.juyimeng.com/simple-python-send-mail-sample-code-with-smtp-auth.html转载 2012-06-13 14:28:48 · 1047 阅读 · 0 评论 -
python2.7.2的安装
1、下载可从 http://www.python.org/进行下载wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz22、解压tar jxvf Python-2.7.2.tar.bz23.进入目录安装:./configure --prefix=/usr/local/Python2.7 --enabl原创 2011-10-25 10:51:45 · 23667 阅读 · 0 评论 -
(转)CentOS 5.5 中 Python 升级到 2.6.5
来源:http://liluo.org/2010/08/centos-5-5-%E4%B8%AD-python-%E5%8D%87%E7%BA%A7%E5%88%B0-2-6-5/ 前天公司购买一台服务器(放置在外高桥电信机房,跑的是JSP的应用),不想在服务器上使用转载 2011-08-04 18:09:34 · 861 阅读 · 0 评论 -
python paramiko 的安装---login、sftp功能需要
python paramiko的安装:安装需要1、pycrypto 2、paramiko;(1)首先安装: pycrypto进入pycrypto的目录,执行:python setup.py installpycrypto下载地址:http://do原创 2011-10-11 15:26:56 · 6868 阅读 · 2 评论 -
(转)python中执行linux命令
python中执行linux命令:os.system(cmd)如果要把返回信息置入变量中:textlist = os.popen(cmd)例:cmd = 'ps -ef 'textlist = os.popen(cmd).readlines()fo转载 2011-08-18 13:20:10 · 7398 阅读 · 0 评论 -
(转)Python模块学习 ---- subprocess 创建子进程
文章来源:http://blog.youkuaiyun.com/jgood/article/details/4498166 最近,我们老大要我写一个守护者程序,对服务器进程进行守护。如果服务器不幸挂掉了,守护者能即时的重启应用程序。上网Google了一下,发现Python有很几个转载 2011-09-09 15:16:16 · 1509 阅读 · 0 评论 -
(转)python中paramiko ssh sftp使用
来源:http://www.51testing.com/?uid-291148-action-viewspace-itemid-234315http://segfault.in/2010/03/paramiko-ssh-and-sftp-with-python/转载 2011-09-09 14:44:29 · 4479 阅读 · 0 评论