python 获取进程号 os.getpid

创建日期: 2025-02-19 16:17 | 作者: 风波 | 浏览次数: 25 | 分类: Python

来源:https://blog.csdn.net/LCY133/article/details/107151882

import os

print(os.getpid())

print(os.getppid())
25 浏览
36 爬虫
0 评论