python报错:<IndentationError: unindent does not match any outer indentation level>
来源:互联网 发布:淘宝不能申请售后 编辑:程序博客网 时间:2024/04/28 21:04
编辑环境是Sublime Text 2,编辑好程序运行时报错:
def os_type(self):
^
IndentationError: unindent does not match any outer indentation level
选中程序显示,如图:
第一个os_type定义的不报错,
下面一个定义的os_type函数报unindet错误,因为我的整个函数都是以tap对齐的,下面一个是以四个空格对齐的,
一个(tab=四个空格) != (手动敲的四个空格) ???
还是整个文件要保持相同格式???
0 0
- python报错:<IndentationError: unindent does not match any outer indentation level>
- Python运行报错IndentationError: unindent does not match any outer indentation level
- Python 报错IndentationError: unindent does not match any outer indentation level
- 解决Python报错IndentationError: unindent does not match any outer indentation level
- PYTHON IndentationError: unindent does not match any outer indentation level
- IndentationError: unindent does not match any outer indentation level
- IndentationError: unindent does not match any outer indentation level
- IndentationError: unindent does not match any outer indentation level
- IndentationError: unindent does not match any outer indentation level
- IndentationError: unindent does not match any outer indentation level
- IndentationError: unindent does not match any outer indentation level
- IndentationError:unindent does not match any outer indentation level
- IndentationError: unindent does not match any outer indentation level
- IndentationError: unindent does not match any outer indentation level
- IndentationError: unindent does not match any outer indentation level
- IndentationError: unindent does not match any outer indentation level
- IndentationError: unindent does not match any outer indentation level
- IndentationError: unindent does not match any outer indentation level
- 【Python】当前时间字符串作为文件名一部分
- 灰色轨迹
- Windows如何一键搭建jsp运行环境
- AdapterViewFlipper 使用kongleifeng
- 第4周项目6--多项式求和
- python报错:<IndentationError: unindent does not match any outer indentation level>
- 第四周项目1 建立单链表
- 配置Log4j(很详细)
- 梦断古城
- SpriteBuilder中音频波长超过Timeline结尾的情况
- 第四周项目2 建立单链表算法库
- UITableView中的一些坑
- 古楼一梦
- 第4周项目5-猴子选大王