有这个自动的规范检查工具 pip install pep8 具体使用不说了 ==。 百度一堆 http://blog.sae.sina.com.cn/archives/4781 看这里 转载于:https://www.cnblogs.com/wswang/p/5380664.html