PyCharm 提示:PEP 8: expected 2 blank lines, found 1
类或方法前需要空两行

image

解决方法:Ctrl+Alt+L 格式化一下就OK了。或者手动在前面敲一行