python subprocess popen 静默模式(不弹出console控制台)
python subprocess popen 静默模式(不弹出console控制台)
import subprocess,sys IS_WIN32 = 'win32' in str(sys.platform).lower() if IS_WIN32: startupinfo = subprocess.STARTUPINFO() startupinfo.dwFlags = subprocess.CREATE_NEW_CONSOLE | subprocess.STARTF_USESHOWWINDOW startupinfo.wShowWindow = subprocess.SW_HIDE p = subprocess.popen([],startupinfo = startupinfo)
参考链接:https://blog.csdn.net/ztb3214/article/details/19256849?utm_source=blogxgwz9
未经博主允许,禁止直接转载本博客任何内容(可以在文章中添加链接,禁止原文照搬),如需直接原文转载对应文章,请在该文章中留言联系博主,谢谢!!