1.后台运行,用vbs很简单
set wscriptObj = CreateObject("Wscript.Shell")
wscriptObj.run "1.exe",0
2.python变成exe
用的是py2exe
需要先建个引导例如test.py
# mysetup.py
from distutils.core import setup
import py2exe
setup(console=["1.py"])
然后cmd里python test.py py2exe