import os
os.system('firefox.exe')
我把上面这段python 代码 编译成了exe ,启动firefox后,中间那个cmd.exe 会启动着,有什么办法隐藏这个cmd 窗口?
不使用 cmd.exe 就是了。
使用subprocess.Popen
并且不要指定shell=True
。
import os
os.system('firefox.exe')
我把上面这段python 代码 编译成了exe ,启动firefox后,中间那个cmd.exe 会启动着,有什么办法隐藏这个cmd 窗口?
不使用 cmd.exe 就是了。
使用subprocess.Popen
并且不要指定shell=True
。