会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
thinker-lj
CnBlogs
Home
New Post
Contact
Admin
Subscription
2014年7月22日
python 调用shell命令的方法
在python程序中调用shell命令,是件很酷且常用的事情……1. os.system(command) 此函数会启动子进程,在子进程中执行command,并返回command命令执行完毕后的退出状态,如果command有执行内容,会在标准输出显示。这实际上是使用C标准库函数system()实现的...
Read More
posted @ 2014-07-22 11:18 thinker-lj
Views(37044)
Comments(0)
Diggs(1)
Edit
公告