时间:2021-07-01 10:21:17 帮助过:61人阅读
代码如下:
if os.name == 'nt':
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
startupinfo.wShowWindow = subprocess.SW_HIDE
else:
startupinfo = None
subprocess.Popen(要运行的命令, startupinfo=startupinfo)
经过今天的修改,gmbox 0.2.4 beta 已经基本能在win下运行了,哈哈。