摘要:
背景:IDEA中双击打开一个.py文件时,弹出一个文件类型的弹窗(没注意是什么,估计是不小心按到了什么快捷键),当时随便选的Text,结果不知道为什么,这个文件无法在IDEA中打开(之前都正常) 由于对idea的file types设定不了解,所以一个菜单一个菜单往下看,因为同后缀的其它文件都可以打 阅读全文
摘要:
安装依赖 pip install psutil 代码 import psutil def check_if_process_running(process_name): ''' Check if there is any running process that contains the given 阅读全文