首页 > 其他分享 >报错 PEP 8: expected 2 blank lines, found 1

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

时间:2023-08-29 16:57:39浏览次数:44  
标签:PEP lines 报错 blank expected found

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

image

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

标签:PEP,lines,报错,blank,expected,found
From: https://www.cnblogs.com/vipsoft/p/17665294.html

相关文章