标签:打印 popen pre RoCE get process color reading str
#启动一个线程
t=threading.Thread(target=cpu_app,args=()) t.daemon = True t.start()
#打印出当前线程的名称和id print(threading.currentThread().name) print(threading.currentThread().ident)
杀进程的话,使用
handle=os.getpid() subprocess.Popen("taskkill /F /T /PID " + str(handle) , shell=True)
标签:打印 popen pre RoCE get process color reading str
原文地址:https://www.cnblogs.com/ffrs/p/11785044.html