Python获取当前脚本进程PID

import os
pid = os.getpid()
print('pid : ',pid)

  

posted @ 2021-08-21 11:13  lucky_tomato  阅读(2297)  评论(0编辑  收藏  举报