会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
liuhongli
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2019年2月10日
python中command执行shell命令脚本方法
摘要: 在Python中有一个模块commands也很容易做到以上的效果.看一下三个函数:1). commands.getstatusoutput(cmd)用os.popen()执行命令cmd, 然后返回两个元素的元组(status, result),其中 status为int类型,result为strin
阅读全文
posted @ 2019-02-10 15:16 liuhongli
阅读(3426)
评论(0)
推荐(0)
编辑