前置条件
语言:python3编写工具:Notepad++
代码部分:用python写了一个内嵌的小函数
问题描述
运行时显示
错误分析
错误提示语句: IndentationError: unindent does not match any outer indentation level翻译: 缩进错误:未缩进的 与任何外部缩进级别都不匹配
出现原因:python语言不支持空格和TAB键混合缩进。
解决方法
因为是用Notepad++写的python语言打开notepad++视图==》显示符号==》显示视图参考线
也就是下图中红色框中的图标,点击后页面会显示缩进参考线。
