Process Explorer v17.02
https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer
Process Explorer v17.02 進階版的「工作管理員」
https://briian.com/6574/
我是想到用 os.getpid(),不確定合不合你的情境需求:
##
import os, time
## Get current process id;
print('CPython.PID:', type(os.getpid()), ':', os.getpid())
##
for i in range(8, 0, -1): ## Just a Delay;
print(i, end = ' ', flush = True)
time.sleep(1.25)
print('')
##
我的結果: