报错 PEP 8: expected 2 blank lines, found 1

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

image

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

posted @ 2023-09-13 08:16  VipSoft  阅读(462)  评论(0)    收藏  举报