inconsistent use of tabs and spaces in indentation: 一、报错的原因 python代码中混用了tab和4个空格造成的,检查代码 二、解决办法: 1、全部用tab 2、全部用4个空格 3、用Sublime Text编辑器校正