Chinaunix首页 | 论坛 | 博客
  • 博客访问: 59649
  • 博文数量: 17
  • 博客积分: 25
  • 博客等级: 民兵
  • 技术积分: 220
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-07 11:14
个人简介

。roth lower(substr(ename,2,length(ena)))

文章分类

全部博文(17)

文章存档

2017年(14)

2013年(3)

我的朋友

发布时间:2017-04-17 22:59:07

什么也不说了,上例子看吧。点击(此处)折叠或打开# -*- coding: utf-8-*-import psutildef get_proc_by_id(pid):    return psutil.Process(pid)def get_proc_by_name(pname):.........【阅读全文】

阅读(727) | 评论(0) | 转发(0)

发布时间:2017-04-09 16:33:33

介绍一下python执行shell命令的四种方法: 注,这个方法得不到shell命令的输出。 这样得到的结果与第一个方法是一样的。 commands.getstatusoutput(cmd)返回(status,output) commands.getstatus(file)返回ls -ld file 的执行结果字符串,调用了getoutput,不建议使用这个方法。 使用subprocess.........【阅读全文】

阅读(6299) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册