1、pip安装
pip install autopep8
2、pycharm设置
按住 Ctrl + Alt + S 打开Settings——>Tools——>External Tools——> "+"
然后填入下图相关参数
SettingsName:autopep8
Program:autopep8
Arguments:--in-place --aggressive --aggressive $FilePath$
Working directory:$ProjectFileDir$
网友评论