os.system()
os.system("xxx.exe")
是阻塞式的
os.popen()
os.popen("xxx.exe")
是非阻塞式的
os.popen("xxx.exe").read()
是阻塞式的
os.startfile()
os.startfile("xxx")
是非阻塞式, 可打开文件夹或者文件 类似与双击打开
subprocess.Popen()
subprocess.Popen()
是非阻塞式的
subprocess.call()
是阻塞式的
subprocess.getstatusoutput()
subprocess.getstatusoutput()
是阻塞式的