start env\Scripts\activate.bat
显示控制台窗口
的run.bat:
@echo off
cd d:\bal
start env\Scripts\activate.bat
start pythonw bal.py
exit
run.vbs:
Set WshShell = CreateObject("WScript.Shell" )
WshShell.Run chr(34) & "run.bat" & Chr(34), 0
Set WshShell = Nothing
答案 0 :(得分:0)
将文件另存为.pyw
希望这会有所帮助:)