热门
最新
红包
立Flag
投票
同城
我的
发布
python 多线程模块 subprocess 简单易上手!!
https://www.jb51.net/article/142787.htm#_label3
import time
import subprocess
print(time.time())
res_1 = subprocess.Popen('echo 1; sleep 5', shell=True)
res_2 = subprocess.Popen('echo 1; sleep 10', shell=True)
res_1.wait()
print(time.time())
print(res_2.poll())
res_2.wait()
print(time.time())
print(res_2.poll())
CSDN App 扫码分享
评论
点赞
打赏
- 复制链接
- 举报
下一条:
转发