Python获取当前脚本进程PID

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

  

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