Python报错TabError: inconsistent use of tabs and spaces in indentation
Python编译器报错:
TabError: inconsistent use of tabs and spaces in indentation
原因是ide里面的编译器对于空格键和tab键的处理问题。
解决方法:
在报错的代码开头处,删掉tab键,用4个空格替换。
Python报错TabError: inconsistent use of tabs and spaces in indentation
Python编译器报错:
TabError: inconsistent use of tabs and spaces in indentation
原因是ide里面的编译器对于空格键和tab键的处理问题。
解决方法:
在报错的代码开头处,删掉tab键,用4个空格替换。