python的一些install脚本还是很强大的,例如python的autopep8库:
地址: https://github.com/hhatto/autopep8
$ pip install --upgrade autopep8
然后在命令行:
$ autopep8 --in-place --aggressive --aggressive <filename>
就可以对代码进行pep8自动排版
python的一些install脚本还是很强大的,例如python的autopep8库:
地址: https://github.com/hhatto/autopep8
$ pip install --upgrade autopep8
然后在命令行:
$ autopep8 --in-place --aggressive --aggressive <filename>
就可以对代码进行pep8自动排版