目录 解决方案 解决方案 菜单 生成 设置生成命令 complie: "c:\python38\python.exe" -m py_compile "%f" execute: c:\python38\python.exe "%f" python.exe的具体位置请在自己python安装路径中取。