wangjuju123

2018-10-24   阅读量: 628

数据分析师 Python编程

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

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

添加CDA认证专家【维克多阿涛】,微信号:【cdashijiazhuang】,提供数据分析指导及CDA考试秘籍。已助千人通过CDA数字化人才认证。欢迎交流,共同成长!
0.0000 0 1 关注作者 收藏

评论(0)


暂无数据

推荐课程

推荐帖子