Files & processes · BUILT-IN MODULE
subprocess
Shell process helpers.
Quick start
use subprocess
out = try subprocess.output "echo SE"
say outAPI reference
subprocess.run commandRun a shell command. Fallible.
執行 a shell command. 此操作可能失敗。
subprocess.output commandCapture shell command output. Fallible.
擷取 shell command output. 此操作可能失敗。