首页 > 其他 > 详细

TabError: Inconsistent use of tabs and spaces in indentation

时间:2015-08-05 22:24:25      阅读:333      评论:0      收藏:0      [点我收藏+]

Pyhton 编辑错误


问题: 

         TabError: Inconsistent use of tabs and spaces in indentation

技术分享


解决方法:


这个错误是说你用了tab键作缩进了,


因为在python不像C/C++里用大括号来区分程序块,而是用缩进


所以缩进很重要你把Tab都换成空格就好了  

版权声明:本文为博主原创文章,未经博主允许不得转载。

TabError: Inconsistent use of tabs and spaces in indentation

原文:http://blog.csdn.net/gdp12315_gu/article/details/47302775

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!