1.通过API进行线程关闭 import threading import time import inspect import ctypes def _async_raise(tid, exctype): """raises the exception, performs cleanup if needed""" print(tid,exctype) tid = ctypes.c_long(tid) print tid if not inspe
一.进程 一个进程就是一个程序,利用进程可以在一个程序中打开另一个程序. 1.开启某个进程Process.Start("文件缩写名"); 注意:Process要解析命名空间. 2.通过绝对路径开启某个进程Process p = new Process();p.StartInfo = new ProcessStartInfo("要打开的程序绝对路径");p.Start(); 3.获取全部开启的进程:返回的是一个Process类的数组Process[] pro = Pr