This article was reproduced in: http://blog.csdn.net/sinat_36384705/article/details/71155379
first of all, this error means: In the indentation, using the wrong space and tab I use the
python3.5, the cause of this error is that I am in the function to knock
If....elif judgment statement,
Elif used a
space before the
tab to complete the alignment, that is, the cause of this error is due to the space or tab indentation caused. Then I did the experiment, the space is deleted, directly using the
tab to complete the indentation, found that the program runs normally, and then try to indent the space, and then found that the error, the same taberror:inconsistent use of the
tabs and spaces in Indentation. that is
, python3.5 is to use the tab to complete the indentation, and can not use a space, otherwise it will be an error
Python Run Error---taberror:inconsistent use of tabs and spaces in indentation