在windows下使用pyflakes
pyflakes是python的语法检查模块 在windows下可以用pip正常安装 注意如果是python3上安装的话要安装pyflakes3k这个版本 可是在python的scripts文件夹下 只有一个linux的执行版本 其实那只是一个python脚本而已 我们做一个名字为pyflakes.bat的脚本就可以达到同样的效果 内容如下 @echo off rem Use python to execute the python script having the same name as this batch rem file, but without any extension, located in the same directory as this rem batch file python “%~dpn0” %* 对了,这里边的python可以根据你自己的情况 指定绝对路径或者python3之类的 在这样做一番以后 也可以用pyflakes的vim插件了 地址如下https://www.vim.org/scripts/script.php?script_id=2441 按F7可以激活语法检查 在错误窗口上 按q是直接可以退出的哦 方便吧