JavaShuo
栏目
标签
PyCharm(Python3)报错 PEP 8: expected 2 blank lines, found 1
时间 2021-01-04
标签
Python
python
PyCharm
报错
入门
函数
栏目
Python
繁體版
原文
原文链接
问题描述 相信不少初学者在使用PyCharm写函数的时候,可能会遇到这样的问题: 第11行代码处,on_draw()函数报错,错误显示为:PEP 8: expected 2 blank lines, found 1 意思为:需要两个空行,找到了一个。 解决方案 在写函数之前,先空两行。 修改之后,一切正常。
>>阅读原文<<
相关文章
1.
Python,PEP 8: expected 2 blank lines, found 0是啥
2.
PEP:8 expected 2 blank lines,found 0解决办法
3.
二十九、pycharm中报错“too many blank lines (3) ”等类似错误
4.
error Expected indentation of 2 spaces but found 4 indent
5.
expected single matching bean but found 2
6.
python3报错:IndentationError: expected an indented block
7.
vue项目报错Expected indentation of 2 spaces but found 4
8.
多数据源报错 expected single matching bean but found 2: xxx,xxx
9.
VUE运行命令行报错:Expected indentation of 2 spaces but found 4
10.
MyBatis报错:Expected one result (or null) to be returned by selectOne(), but found: 2
更多相关文章...
•
PHP PDO 错误与错误处理
-
PHP参考手册
•
错误处理
-
RUST 教程
•
Java 8 Stream 教程
•
RxJava操作符(八)Aggregate
相关标签/搜索
pep
blank
lines
expected
8.python3
错报
报错
2.pycharm
1.pycharm
python3.x+pycharm+autopep8
Python
PHP 7 新特性
Redis教程
Spring教程
Java 8
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
子类对象实例化全过程
2.
【Unity2DMobileGame_PirateBomb09】—— 设置基本敌人
3.
SSIS安装以及安装好找不到商业智能各种坑
4.
关于 win10 安装好的字体为什么不能用 WebStrom找不到自己的字体 IDE找不到自己字体 vs找不到自己字体 等问题
5.
2019版本mac电脑pr安装教程
6.
使用JacpFX和JavaFX2构建富客户端
7.
MySQL用户管理
8.
Unity区域光(Area Light) 看不见光线
9.
Java对象定位
10.
2019-9-2-用自动机的思想说明光速
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Python,PEP 8: expected 2 blank lines, found 0是啥
2.
PEP:8 expected 2 blank lines,found 0解决办法
3.
二十九、pycharm中报错“too many blank lines (3) ”等类似错误
4.
error Expected indentation of 2 spaces but found 4 indent
5.
expected single matching bean but found 2
6.
python3报错:IndentationError: expected an indented block
7.
vue项目报错Expected indentation of 2 spaces but found 4
8.
多数据源报错 expected single matching bean but found 2: xxx,xxx
9.
VUE运行命令行报错:Expected indentation of 2 spaces but found 4
10.
MyBatis报错:Expected one result (or null) to be returned by selectOne(), but found: 2
>>更多相关文章<<