python的一些install脚本还是很强大的,例如python的autopep8库:
地址: https://github.com/hhatto/autopep8
$ pip install --upgrade autopep8
然后在命令行:
$ autopep8 --in-place --aggressive --aggressive <filename>
就可以对代码进行pep8自动排版
本文介绍了一个强大的Python工具autopep8,它能够帮助开发者自动地按照PEP8规范美化代码。通过简单的命令行操作即可完成对Python源文件的格式调整。
python的一些install脚本还是很强大的,例如python的autopep8库:
地址: https://github.com/hhatto/autopep8
$ pip install --upgrade autopep8
然后在命令行:
$ autopep8 --in-place --aggressive --aggressive <filename>
就可以对代码进行pep8自动排版

被折叠的 条评论
为什么被折叠?