获取Python的***:

http://idea.lanyus.com/

设置模板

启动PyCharm
File ->Settings -> Editor ->File and Code Templates。添加具体的模式如下:
PyCharm规范设置

设置pep8规范

PyCharm规范设置

执行优化

右键python文件,点击ExternalTool->autopep8 自动格式化

相关文章: