python autopep8

  • 安装

  使用pip install autopep8或easy_install 都可以。

  • 使用

  autopep8 -i -a 要检查的py文件路径  

  更多参数使用可以参考:https://github.com/hhatto/autopep8/

原文地址:https://www.cnblogs.com/xiaobaichuangtianxia/p/6120955.html