@echo off :: 激活 chache 虚拟环境 call conda activate chache :: 切换到 .bat 文件所在目录(main.py 所在目录) cd /d %~dp0% :: 运行主程序 python main.py :: 防止窗口关闭,方便查看输出结果 pause