TabError: Inconsistent use of tabs and spaces in indentation
来源:互联网 发布:惠普打印机网络共享 编辑:程序博客网 时间:2024/06/05 15:01
TabError: Inconsistent use of tabs and spaces in indentation
首先这个错误的意思是:在缩进的时候,使用了错误的空格和tab
我使用的python3.5,造成这个错误的原因是我在函数里面敲if....elif 判断语句的时候,elif之前先用了空格然后再用tab完成了对齐,也就是说,这种错误产生的原因正是由于空格或者tab缩进造成的。
然后我做了试验,将空格删除,直接使用tab完成缩进,发现程序正常运行;
再试一下空格缩进,然后发现还是报错了,同样TabError: Inconsistent use of tabs and spaces in indentation。
也就是说,python3.5是要用tab完成缩进的,而且不能使用空格,否则会报错
0 1
- TabError: Inconsistent use of tabs and spaces in indentation
- TabError: Inconsistent use of tabs and spaces in indentation
- python TabError: Inconsistent use of tabs and spaces in indentation
- taberror inconsistent use of tabs and spaces in indentation pycharm
- python报错TabError: Inconsistent use of tabs and spaces in indentation
- python inconsistent use of tabs and spaces in indentation
- inconsistent use of tabs and spaces in indentation
- SyntaxError: inconsistent use of tabs and spaces in indentation
- python inconsistent use of tabs and spaces in indentation
- Tabs and spaces in Vim
- Jade报错:Invalid indentation,you can use tabs or spaces but not both问题
- Jade报错:Invalid indentation,you can use tabs or spaces but not both
- Fix Indentation and Tabs in VIM (Vim格式化操作)
- Error: Inconsistent indentation detected!
- you have mixed tabs and spaces fix this
- tomcat启动报错java.net.BindException: Address already in use<null>:8080
- Count the number of alphabets, spaces, digits and other characters in one line character
- Use HttpUtility and NameValueCollection in c# of Visual Studio 2010
- vector基本用法
- SAP HANA数据类型
- 已知二叉树的中序和前序序列(或后序)求解树
- The 2016 ACM-ICPC Asia Dalian Regional Contest(汇总)
- 【设计模式】观察者模式
- TabError: Inconsistent use of tabs and spaces in indentation
- C#150课的主要内容
- C++第五次作业
- 不等式序列-百度
- 235. Lowest Common Ancestor of a Binary Search Tree | 二叉查找树两个节点的最低共同祖先
- 《Cracking the Coding Interview程序员面试金典》----整数对查找
- 初识jenkins之-jenkins的安装与配置
- startup_stm32f407xx.s
- 欢迎使用CSDN-markdown编辑器