热线电话:13121318867

登录
2018-10-24 阅读量: 799
python 错误解析(十八)

代码如下:

>>> if X>Y:  
... X,Y = 3,4
... print X,Y
File "<stdin>", line 3
print X,Y
^
IndentationError: unexpected indent


>>> t = (1,2,3,4)
File "<stdin>", line 1
t = (1,2,3,4)
^
IndentationError: unexpected indent

【错误分析】一般出在代码缩进的问题

0.0000
1
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子