latest
Contents:
1. 介绍
2. 安全
3. 常用系统命令
4. 常用系统服务
5. 常用系统优化
6. 软件管理
7. 网络
8. 数据库
9. 存储
10. 监控
11. 脚本&开发
12. python
安装python
python的各种模块
sys
re
shutil
subprocess
调用shell命令,并返回状态
调用shell命令,并返回标准输出的内容
selenium
scapy
cgi
python的各种报错
time
python字符串
requests
设置环境变量
django
list
定义一个列表
向一个列表添加内容
删除列表里的指定内容
各类功能
13. 云计算&虚拟化
14. kubernetes
15. 高可用&负载均衡
16. web
17. 自动化运维
18. 其他开源工具
19. 其他
20. RHCE
21. RHCA
22. alv.pub network(alvin的内网)
Poppy
Docs
»
12. python
»
python的各种模块
»
subprocess
Edit on GitHub
subprocess
¶
调用shell命令,并返回状态
¶
subprocess
.
call
(
'ls aa'
,
shell
=
True
)
调用shell命令,并返回标准输出的内容
¶
subprocess
.
check_output
(
'ls aa'
,
shell
=
True
)
Read the Docs
v: latest
Versions
latest
Downloads
pdf
html
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.