1唁情、pip安裝
pip install autopep8?
2欲间、pycharm設(shè)置
按住 Ctrl + Alt + S 打開Settings——>Tools——>External Tools——> "+"
然后填入下圖相關(guān)參數(shù)
Name:autopep8
Program:autopep8
Arguments:--in-place --aggressive --aggressive $FilePath$
Working directory:$ProjectFileDir$