摘要: 原文这里有显示地址:http://zhou123.blog.51cto.com/4355617/1312791现在摘取一部分:这里介绍一下python执行shell命令的四种方法:1、os模块中的os.system()这个函数来执行shell命令123>>> os.system('ls')anaconda-ks.cfg install.log install.log.syslog send_sms_service.py sms.py0注,这个方法得不到shell命令的输出。2、popen()#这个方法能得到命令执行后的结果是一个字符串,要自行处理才能得到想要的 阅读全文
posted @ 2014-02-13 09:26 spaceship9 阅读(1643) 评论(0) 推荐(0) 编辑