python报错:TabError: inconsistent use of tabs and spaces in indentation
python代码在编辑后经常会报下面的错:TabError: inconsistent use of tabs and spaces in indentation报错原因:所使用的文本编辑器没有将Tab(\t)键转换为4个空格,而python本身编译器不认这个Tab,导致报错TabError。解决方法:将代码中的所有的Tab键全部删掉,改为手敲4下空格!!!注:python编辑时按回车换行,这一行的前面也都是Tab,即也要改为4个空格。。。...