subprocess

[美]/ˈsʌbˌprəʊses/
[英]/ˈsʌbˌprɑːses/
词频: 极高

释义

n.子流程; 子进程
词形变化

短语搭配

spawn a subprocess

生成子进程

create a subprocess

创建子进程

kill the subprocess

终止子进程

subprocess call

子进程调用

child subprocess

子进程

subprocess module

子进程模块

subprocess id

子进程标识符

running subprocess

运行中的子进程

subprocess output

子进程输出

multiple subprocesses

多个子进程

例句

english sentence

translation only

the script uses subprocess.run() to execute the external command.

脚本使用subprocess.run()执行外部命令。

we can use subprocess.popen() to create a background process.

我们可以使用subprocess.popen()创建后台进程。

the subprocess.call() method returns the exit code when the command completes.

subprocess.call()方法在命令完成时返回退出码。

use subprocess.check_output() to capture the standard output of the command.

使用subprocess.check_output()捕获命令的标准输出。

the subprocess.communicate() method sends input and receives output from the process.

subprocess.communicate()方法发送输入并接收进程的输出。

set subprocess.pipe to redirect stdout and stderr to the parent process.

设置subprocess.pipe将标准输出和标准错误重定向到父进程。

check subprocess.returncode to determine if the process completed successfully.

检查subprocess.returncode以确定进程是否成功完成。

use subprocess.kill() to terminate a running subprocess immediately.

使用subprocess.kill()立即终止正在运行的子进程。

the subprocess.terminate() method gracefully stops the process.

subprocess.terminate()方法优雅地停止进程。

you can spawn a subprocess to run multiple commands concurrently.

您可以生成子进程来并发运行多个命令。

the subprocess module provides tools for managing external processes.

subprocess模块提供了管理外部进程的工具。

always handle exceptions when working with subprocess to avoid zombie processes.

使用subprocess时始终处理异常以避免僵尸进程。

the subprocess can be configured with environment variables before execution.

子进程可以在执行前配置环境变量。

use timeout parameter in subprocess.run() to prevent hanging processes.

在subprocess.run()中使用timeout参数防止进程挂起。

下载 App 解锁完整内容

想更高效学习单词?下载DictoGo App,享受更多词汇记忆与复习功能!

立即下载 DictoGo