Python Run Error---taberror:inconsistent use of tabs and spaces in indentation

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.