获取当前脚本的进程PID号

import os

handle=os.getpid()
posted @ 2020-06-23 02:15  凯宾斯基  阅读(544)  评论(0编辑  收藏  举报