摘要: 1、根据端口号获取服务进程ID,并杀掉进程 result = os.popen('netstat -aon | findstr port').read() # os.poenp函数将命令行中的输出读入到变量result中result = result.split('\n')[0].split(' ' 阅读全文
posted @ 2023-08-31 13:25 修乐 阅读(12) 评论(0) 推荐(0) 编辑