python获取进程pid
How to get the running process’ pid in Python?
In Python, you can get the pid of the current process by
在Python中 ,您可以通过获取当前进程的pid
import os
os.getpid()
From the official doc:
从官方文档 :
os.getpid()
os.getpid()
Return the current process id.
Return the current process id.
Answered by dtivl.
dtivl回答。
翻译自: https://www.systutorials.com/how-to-get-the-running-process-pid-in-python/
python获取进程pid