码迷,mamicode.com
首页 > 其他好文 > 详细

TabError: Inconsistent use of tabs and spaces in indentation

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

标签:python

Pyhton 编辑错误


问题: 

         TabError: Inconsistent use of tabs and spaces in indentation

技术分享


解决方法:


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


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


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

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

TabError: Inconsistent use of tabs and spaces in indentation

标签:python

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

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!