René's URL Explorer Experiment


Title: subprocess --- 子行程管理 — Python 3.14.0 說明文件

direct link

Domain: python.github.io

readthedocs-addons-api-version1

Links:

https://www.python.org/
目錄https://python.github.io/python-docs-zh-tw/contents.html
subprocess --- 子行程管理https://python.github.io/python-docs-zh-tw/library/subprocess.html
Using the subprocess Modulehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#using-the-subprocess-module
Frequently Used Argumentshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#frequently-used-arguments
Popen Constructorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#popen-constructor
例外https://python.github.io/python-docs-zh-tw/library/subprocess.html#exceptions
安全性注意事項https://python.github.io/python-docs-zh-tw/library/subprocess.html#security-considerations
Popen Objectshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#popen-objects
Windows Popen Helpershttps://python.github.io/python-docs-zh-tw/library/subprocess.html#windows-popen-helpers
Windows Constantshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#windows-constants
Older high-level APIhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#older-high-level-api
Replacing Older Functions with the subprocess Modulehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-older-functions-with-the-subprocess-module
Replacing /bin/sh shell command substitutionhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-bin-sh-shell-command-substitution
Replacing shell pipelinehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-shell-pipeline
取代 os.system()https://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-os-system
Replacing the os.spawn familyhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-the-os-spawn-family
取代 os.popen()https://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-os-popen
Legacy Shell Invocation Functionshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#legacy-shell-invocation-functions
註解https://python.github.io/python-docs-zh-tw/library/subprocess.html#notes
Timeout Behaviorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#timeout-behavior
Converting an argument sequence to a string on Windowshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#converting-an-argument-sequence-to-a-string-on-windows
停用 posix_spawn()https://python.github.io/python-docs-zh-tw/library/subprocess.html#disable-use-of-posix-spawn
concurrent.interpreters --- 在同一個行程中使用多個直譯器https://python.github.io/python-docs-zh-tw/library/concurrent.interpreters.html
sched --- 事件排程器https://python.github.io/python-docs-zh-tw/library/sched.html
回報錯誤https://python.github.io/python-docs-zh-tw/bugs.html
顯示原始碼 https://github.com/python/cpython/blob/main/Doc/library/subprocess.rst?plain=1
索引https://python.github.io/python-docs-zh-tw/genindex.html
模組https://python.github.io/python-docs-zh-tw/py-modindex.html
下一頁https://python.github.io/python-docs-zh-tw/library/sched.html
上一頁https://python.github.io/python-docs-zh-tw/library/concurrent.interpreters.html
Pythonhttps://www.python.org/
3.14.0 Documentationhttps://python.github.io/python-docs-zh-tw/index.html
Python 標準函式庫 (Standard Library)https://python.github.io/python-docs-zh-tw/library/index.html
並行執行 (Concurrent Execution)https://python.github.io/python-docs-zh-tw/library/concurrency.html
subprocess --- 子行程管理https://python.github.io/python-docs-zh-tw/library/subprocess.html
https://python.github.io/python-docs-zh-tw/library/subprocess.html#module-subprocess
Lib/subprocess.pyhttps://github.com/python/cpython/tree/3.14/Lib/subprocess.py
subprocesshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#module-subprocess
subprocesshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#module-subprocess
PEP 324https://peps.python.org/pep-0324/
可用性https://python.github.io/python-docs-zh-tw/library/intro.html#availability
行動平台https://python.github.io/python-docs-zh-tw/library/intro.html#mobile-availability
WebAssembly 平台https://python.github.io/python-docs-zh-tw/library/intro.html#wasm-availability
subprocesshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#module-subprocess
https://python.github.io/python-docs-zh-tw/library/subprocess.html#using-the-subprocess-module
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
CompletedProcesshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CompletedProcess
Frequently Used Argumentshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#frequently-used-arguments
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
STDOUThttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STDOUT
Popen.communicate()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.communicate
TimeoutExpiredhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.TimeoutExpired
Popen.communicate()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.communicate
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
CalledProcessErrorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError
io.TextIOWrapperhttps://python.github.io/python-docs-zh-tw/library/io.html#io.TextIOWrapper
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
os.environhttps://python.github.io/python-docs-zh-tw/library/os.html#os.environ
os.environbhttps://python.github.io/python-docs-zh-tw/library/os.html#os.environb
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CompletedProcess
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CompletedProcess.args
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CompletedProcess.returncode
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CompletedProcess.stdout
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
stderrhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CompletedProcess.stderr
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CompletedProcess.stderr
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CompletedProcess.check_returncode
returncodehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CompletedProcess.returncode
CalledProcessErrorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.DEVNULL
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
os.devnullhttps://python.github.io/python-docs-zh-tw/library/os.html#os.devnull
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
Popen.communicate()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.communicate
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STDOUT
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.SubprocessError
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.TimeoutExpired
SubprocessErrorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.SubprocessError
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.TimeoutExpired.cmd
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.TimeoutExpired.timeout
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.TimeoutExpired.output
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
check_output()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.check_output
byteshttps://python.github.io/python-docs-zh-tw/library/stdtypes.html#bytes
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.TimeoutExpired.stdout
stderrhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.TimeoutExpired.stderr
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.TimeoutExpired.stderr
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
byteshttps://python.github.io/python-docs-zh-tw/library/stdtypes.html#bytes
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError
SubprocessErrorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.SubprocessError
check_call()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.check_call
check_output()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.check_output
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError.returncode
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError.cmd
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError.output
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
check_output()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.check_output
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError.stdout
stderrhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError.stderr
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError.stderr
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
https://python.github.io/python-docs-zh-tw/library/subprocess.html#frequently-used-arguments
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
Truehttps://python.github.io/python-docs-zh-tw/library/constants.html#True
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
DEVNULLhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.DEVNULL
file objecthttps://python.github.io/python-docs-zh-tw/glossary.html#term-file-object
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
DEVNULLhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.DEVNULL
os.devnullhttps://python.github.io/python-docs-zh-tw/library/os.html#os.devnull
STDOUThttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STDOUT
io.TextIOWrapperhttps://python.github.io/python-docs-zh-tw/library/io.html#io.TextIOWrapper
os.linesephttps://python.github.io/python-docs-zh-tw/library/os.html#os.linesep
io.TextIOWrapperhttps://python.github.io/python-docs-zh-tw/library/io.html#io.TextIOWrapper
Popen.stdinhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.stdin
Popen.stdouthttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.stdout
Popen.stderrhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.stderr
Popen.communicate()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.communicate
globhttps://python.github.io/python-docs-zh-tw/library/glob.html#module-glob
fnmatchhttps://python.github.io/python-docs-zh-tw/library/fnmatch.html#module-fnmatch
os.walk()https://python.github.io/python-docs-zh-tw/library/os.html#os.walk
os.path.expandvars()https://python.github.io/python-docs-zh-tw/library/os.path.html#os.path.expandvars
os.path.expanduser()https://python.github.io/python-docs-zh-tw/library/os.path.html#os.path.expanduser
shutilhttps://python.github.io/python-docs-zh-tw/library/shutil.html#module-shutil
locale.getpreferredencoding(False)https://python.github.io/python-docs-zh-tw/library/locale.html#locale.getpreferredencoding
io.TextIOWrapperhttps://python.github.io/python-docs-zh-tw/library/io.html#io.TextIOWrapper
Security Considerationshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#security-considerations
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#popen-constructor
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
os.execvpe()https://python.github.io/python-docs-zh-tw/library/os.html#os.execvpe
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
path-like objecthttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-like-object
shutil.which()https://python.github.io/python-docs-zh-tw/library/shutil.html#shutil.which
sys.executablehttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.executable
os.execvpe()https://python.github.io/python-docs-zh-tw/library/os.html#os.execvpe
shlex.split()https://python.github.io/python-docs-zh-tw/library/shlex.html#shlex.split
Converting an argument sequence to a string on Windowshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#converting-argument-sequence
path-like objecthttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-like-object
path-like objecthttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-like-object
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
Security Considerationshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#security-considerations
open()https://python.github.io/python-docs-zh-tw/library/functions.html#open
path-like objecthttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-like-object
path-like objecthttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-like-object
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
DEVNULLhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.DEVNULL
file objecthttps://python.github.io/python-docs-zh-tw/glossary.html#term-file-object
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
DEVNULLhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.DEVNULL
os.devnullhttps://python.github.io/python-docs-zh-tw/library/os.html#os.devnull
STDOUThttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STDOUT
os.setsid()https://python.github.io/python-docs-zh-tw/library/os.html#os.setsid
os.setpgid()https://python.github.io/python-docs-zh-tw/library/os.html#os.setpgid
RuntimeErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#RuntimeError
Inheritance of File Descriptorshttps://python.github.io/python-docs-zh-tw/library/os.html#fd-inheritance
STARTUPINFO.lpAttributeListhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.lpAttributeList
Falsehttps://python.github.io/python-docs-zh-tw/library/constants.html#False
Falsehttps://python.github.io/python-docs-zh-tw/library/constants.html#False
Truehttps://python.github.io/python-docs-zh-tw/library/constants.html#True
Truehttps://python.github.io/python-docs-zh-tw/library/constants.html#True
Truehttps://python.github.io/python-docs-zh-tw/library/constants.html#True
path-likehttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-like-object
path-like objecthttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-like-object
path-like objecthttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-like-object
可用性https://python.github.io/python-docs-zh-tw/library/intro.html#availability
可用性https://python.github.io/python-docs-zh-tw/library/intro.html#availability
grp.getgrnam()https://python.github.io/python-docs-zh-tw/library/grp.html#grp.getgrnam
可用性https://python.github.io/python-docs-zh-tw/library/intro.html#availability
grp.getgrnam()https://python.github.io/python-docs-zh-tw/library/grp.html#grp.getgrnam
可用性https://python.github.io/python-docs-zh-tw/library/intro.html#availability
pwd.getpwnam()https://python.github.io/python-docs-zh-tw/library/pwd.html#pwd.getpwnam
可用性https://python.github.io/python-docs-zh-tw/library/intro.html#availability
可用性https://python.github.io/python-docs-zh-tw/library/intro.html#availability
os.environhttps://python.github.io/python-docs-zh-tw/library/os.html#os.environ
os.environbhttps://python.github.io/python-docs-zh-tw/library/os.html#os.environb
side-by-side assemblyhttps://en.wikipedia.org/wiki/Side-by-Side_Assembly
Frequently Used Argumentshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#frequently-used-arguments
STARTUPINFOhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO
CREATE_NEW_CONSOLEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CREATE_NEW_CONSOLE
CREATE_NEW_PROCESS_GROUPhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CREATE_NEW_PROCESS_GROUP
ABOVE_NORMAL_PRIORITY_CLASShttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.ABOVE_NORMAL_PRIORITY_CLASS
BELOW_NORMAL_PRIORITY_CLASShttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.BELOW_NORMAL_PRIORITY_CLASS
HIGH_PRIORITY_CLASShttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.HIGH_PRIORITY_CLASS
IDLE_PRIORITY_CLASShttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.IDLE_PRIORITY_CLASS
NORMAL_PRIORITY_CLASShttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.NORMAL_PRIORITY_CLASS
REALTIME_PRIORITY_CLASShttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.REALTIME_PRIORITY_CLASS
CREATE_NO_WINDOWhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CREATE_NO_WINDOW
DETACHED_PROCESShttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.DETACHED_PROCESS
CREATE_DEFAULT_ERROR_MODEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CREATE_DEFAULT_ERROR_MODE
CREATE_BREAKAWAY_FROM_JOBhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CREATE_BREAKAWAY_FROM_JOB
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
withhttps://python.github.io/python-docs-zh-tw/reference/compound_stmts.html#with
auditing eventhttps://python.github.io/python-docs-zh-tw/library/sys.html#auditing
ResourceWarninghttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ResourceWarning
os.posix_spawn()https://python.github.io/python-docs-zh-tw/library/os.html#os.posix_spawn
os.posix_spawn()https://python.github.io/python-docs-zh-tw/library/os.html#os.posix_spawn
returncodehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.returncode
https://python.github.io/python-docs-zh-tw/library/subprocess.html#exceptions
OSErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#OSError
OSErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#OSError
OSErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#OSError
ValueErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ValueError
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
check_call()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.check_call
check_output()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.check_output
CalledProcessErrorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
Popen.communicate()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.communicate
TimeoutExpiredhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.TimeoutExpired
SubprocessErrorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.SubprocessError
SubprocessErrorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.SubprocessError
https://python.github.io/python-docs-zh-tw/library/subprocess.html#security-considerations
shell injectionhttps://en.wikipedia.org/wiki/Shell_injection#Shell_injection
some platformshttps://python.github.io/python-docs-zh-tw/library/shlex.html#shlex-quote-warning
shlex.quote()https://python.github.io/python-docs-zh-tw/library/shlex.html#shlex.quote
gh-114539https://github.com/python/cpython/issues/114539
https://python.github.io/python-docs-zh-tw/library/subprocess.html#popen-objects
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.poll
returncodehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.returncode
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.wait
returncodehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.returncode
TimeoutExpiredhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.TimeoutExpired
Popen.communicate()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.communicate
asynciohttps://python.github.io/python-docs-zh-tw/library/asyncio.html#module-asyncio
asyncio.create_subprocess_exechttps://python.github.io/python-docs-zh-tw/library/asyncio-subprocess.html#asyncio.create_subprocess_exec
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.communicate
returncodehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.returncode
communicate()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.communicate
TimeoutExpiredhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.TimeoutExpired
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.send_signal
terminate()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.terminate
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.terminate
SIGTERMhttps://python.github.io/python-docs-zh-tw/library/signal.html#signal.SIGTERM
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.kill
kill()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.kill
terminate()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.terminate
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.args
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.stdin
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
open()https://python.github.io/python-docs-zh-tw/library/functions.html#open
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.stdout
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
open()https://python.github.io/python-docs-zh-tw/library/functions.html#open
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.stderr
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
open()https://python.github.io/python-docs-zh-tw/library/functions.html#open
PIPEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.PIPE
communicate()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.communicate
.stdin.writehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.stdin
.stdout.readhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.stdout
.stderr.readhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.stderr
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.pid
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.returncode
returncodehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.returncode
poll()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.poll
wait()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.wait
communicate()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.communicate
https://python.github.io/python-docs-zh-tw/library/subprocess.html#windows-popen-helpers
STARTUPINFOhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO
STARTUPINFOhttps://msdn.microsoft.com/en-us/library/ms686331(v=vs.85).aspx
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.dwFlags
STARTUPINFOhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.hStdInput
dwFlagshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.dwFlags
STARTF_USESTDHANDLEShttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTF_USESTDHANDLES
STARTF_USESTDHANDLEShttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTF_USESTDHANDLES
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.hStdOutput
dwFlagshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.dwFlags
STARTF_USESTDHANDLEShttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTF_USESTDHANDLES
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.hStdError
dwFlagshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.dwFlags
STARTF_USESTDHANDLEShttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTF_USESTDHANDLES
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.wShowWindow
dwFlagshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.dwFlags
STARTF_USESHOWWINDOWhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTF_USESHOWWINDOW
ShowWindowhttps://msdn.microsoft.com/en-us/library/ms633548(v=vs.85).aspx
SW_HIDEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.SW_HIDE
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.lpAttributeList
UpdateProcThreadAttributehttps://msdn.microsoft.com/en-us/library/windows/desktop/ms686880(v=vs.85).aspx
os.set_handle_inheritable()https://python.github.io/python-docs-zh-tw/library/os.html#os.set_handle_inheritable
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
OSErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#OSError
os.system()https://python.github.io/python-docs-zh-tw/library/os.html#os.system
https://python.github.io/python-docs-zh-tw/library/subprocess.html#windows-constants
subprocesshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#module-subprocess
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STD_INPUT_HANDLE
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STD_OUTPUT_HANDLE
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STD_ERROR_HANDLE
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.SW_HIDE
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTF_USESTDHANDLES
STARTUPINFO.hStdInputhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.hStdInput
STARTUPINFO.hStdOutputhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.hStdOutput
STARTUPINFO.hStdErrorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.hStdError
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTF_USESHOWWINDOW
STARTUPINFO.wShowWindowhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.wShowWindow
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTF_FORCEONFEEDBACK
STARTUPINFO.dwFlagshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.dwFlags
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTF_FORCEOFFFEEDBACK
STARTUPINFO.dwFlagshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.STARTUPINFO.dwFlags
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CREATE_NEW_CONSOLE
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CREATE_NEW_PROCESS_GROUP
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
os.kill()https://python.github.io/python-docs-zh-tw/library/os.html#os.kill
CREATE_NEW_CONSOLEhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CREATE_NEW_CONSOLE
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.ABOVE_NORMAL_PRIORITY_CLASS
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.BELOW_NORMAL_PRIORITY_CLASS
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.HIGH_PRIORITY_CLASS
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.IDLE_PRIORITY_CLASS
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.NORMAL_PRIORITY_CLASS
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.REALTIME_PRIORITY_CLASS
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CREATE_NO_WINDOW
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.DETACHED_PROCESS
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CREATE_DEFAULT_ERROR_MODE
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CREATE_BREAKAWAY_FROM_JOB
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#older-high-level-api
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.call
returncodehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.returncode
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
DEVNULLhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.DEVNULL
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.check_call
CalledProcessErrorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError
CalledProcessErrorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError
returncodehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError.returncode
check_call()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.check_call
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
DEVNULLhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.DEVNULL
Popenhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.check_output
CalledProcessErrorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError
CalledProcessErrorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError
returncodehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError.returncode
outputhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError.output
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
Frequently Used Argumentshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#frequently-used-arguments
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
subprocesshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#module-subprocess
https://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-older-functions-with-the-subprocess-module
OSErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#OSError
check_output()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.check_output
CalledProcessErrorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError
outputhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.CalledProcessError.output
subprocesshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#module-subprocess
https://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-bin-sh-shell-command-substitution
https://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-shell-pipeline
os.system()https://python.github.io/python-docs-zh-tw/library/os.html#os.system
https://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-os-system
call()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.call
os.system()https://python.github.io/python-docs-zh-tw/library/os.html#os.system
os.system()https://python.github.io/python-docs-zh-tw/library/os.html#os.system
subprocesshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#module-subprocess
os.spawnhttps://python.github.io/python-docs-zh-tw/library/os.html#os.spawnl
https://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-the-os-spawn-family
os.popen()https://python.github.io/python-docs-zh-tw/library/os.html#os.popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-os-popen
https://python.github.io/python-docs-zh-tw/library/subprocess.html#legacy-shell-invocation-functions
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.getstatusoutput
check_output()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.check_output
Frequently Used Argumentshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#frequently-used-arguments
可用性https://python.github.io/python-docs-zh-tw/library/intro.html#availability
returncodehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.returncode
https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.getoutput
getstatusoutput()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.getstatusoutput
可用性https://python.github.io/python-docs-zh-tw/library/intro.html#availability
https://python.github.io/python-docs-zh-tw/library/subprocess.html#notes
https://python.github.io/python-docs-zh-tw/library/subprocess.html#timeout-behavior
run()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.run
Popen.wait()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.wait
Popen.communicate()https://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.Popen.communicate
TimeoutExpiredhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#subprocess.TimeoutExpired
https://python.github.io/python-docs-zh-tw/library/subprocess.html#converting-an-argument-sequence-to-a-string-on-windows
shlexhttps://python.github.io/python-docs-zh-tw/library/shlex.html#module-shlex
https://python.github.io/python-docs-zh-tw/library/subprocess.html#disable-use-of-posix-spawn
subprocesshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#module-subprocess
目錄https://python.github.io/python-docs-zh-tw/contents.html
subprocess --- 子行程管理https://python.github.io/python-docs-zh-tw/library/subprocess.html
Using the subprocess Modulehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#using-the-subprocess-module
Frequently Used Argumentshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#frequently-used-arguments
Popen Constructorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#popen-constructor
例外https://python.github.io/python-docs-zh-tw/library/subprocess.html#exceptions
安全性注意事項https://python.github.io/python-docs-zh-tw/library/subprocess.html#security-considerations
Popen Objectshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#popen-objects
Windows Popen Helpershttps://python.github.io/python-docs-zh-tw/library/subprocess.html#windows-popen-helpers
Windows Constantshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#windows-constants
Older high-level APIhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#older-high-level-api
Replacing Older Functions with the subprocess Modulehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-older-functions-with-the-subprocess-module
Replacing /bin/sh shell command substitutionhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-bin-sh-shell-command-substitution
Replacing shell pipelinehttps://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-shell-pipeline
取代 os.system()https://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-os-system
Replacing the os.spawn familyhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-the-os-spawn-family
取代 os.popen()https://python.github.io/python-docs-zh-tw/library/subprocess.html#replacing-os-popen
Legacy Shell Invocation Functionshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#legacy-shell-invocation-functions
註解https://python.github.io/python-docs-zh-tw/library/subprocess.html#notes
Timeout Behaviorhttps://python.github.io/python-docs-zh-tw/library/subprocess.html#timeout-behavior
Converting an argument sequence to a string on Windowshttps://python.github.io/python-docs-zh-tw/library/subprocess.html#converting-an-argument-sequence-to-a-string-on-windows
停用 posix_spawn()https://python.github.io/python-docs-zh-tw/library/subprocess.html#disable-use-of-posix-spawn
concurrent.interpreters --- 在同一個行程中使用多個直譯器https://python.github.io/python-docs-zh-tw/library/concurrent.interpreters.html
sched --- 事件排程器https://python.github.io/python-docs-zh-tw/library/sched.html
回報錯誤https://python.github.io/python-docs-zh-tw/bugs.html
顯示原始碼 https://github.com/python/cpython/blob/main/Doc/library/subprocess.rst?plain=1
索引https://python.github.io/python-docs-zh-tw/genindex.html
模組https://python.github.io/python-docs-zh-tw/py-modindex.html
下一頁https://python.github.io/python-docs-zh-tw/library/sched.html
上一頁https://python.github.io/python-docs-zh-tw/library/concurrent.interpreters.html
Pythonhttps://www.python.org/
3.14.0 Documentationhttps://python.github.io/python-docs-zh-tw/index.html
Python 標準函式庫 (Standard Library)https://python.github.io/python-docs-zh-tw/library/index.html
並行執行 (Concurrent Execution)https://python.github.io/python-docs-zh-tw/library/concurrency.html
subprocess --- 子行程管理https://python.github.io/python-docs-zh-tw/library/subprocess.html
版權所有https://python.github.io/python-docs-zh-tw/copyright.html
歷史與授權條款https://python.github.io/license.html
敬請捐贈。https://www.python.org/psf/donations/
發現 bughttps://python.github.io/bugs.html
Sphinxhttps://www.sphinx-doc.org/

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.