Python脚本运行出现语法错误:IndentationError: unindent does not match any outer indentation level
2015-05-07 17:12
549 查看
对着Head_First_Python练习 在第一个else出现错误,原因是 else前面有4个缩进用了点点点点空格,其它的是Tab键
movies = ['The Holy Garil',1975,'Terry Jones & Terry Gillian',91,['Graham Chapman',['Michael Palin','John Cleese','Terry Gillian','Eric Idle','Terry Jones',['H','Y']]]]
for each_item in movies:
if isinstance(each_item,list):
for nested_item in each_item:
if isinstance(nested_item,list):
for last_item in nested_item:
if isinstance(last_item,list):
for depper_item in last_item:
print(depper_item)
else:
print last_item
else:
print nested_item
else:
print each_item
movies = ['The Holy Garil',1975,'Terry Jones & Terry Gillian',91,['Graham Chapman',['Michael Palin','John Cleese','Terry Gillian','Eric Idle','Terry Jones',['H','Y']]]]
for each_item in movies:
if isinstance(each_item,list):
for nested_item in each_item:
if isinstance(nested_item,list):
for last_item in nested_item:
if isinstance(last_item,list):
for depper_item in last_item:
print(depper_item)
else:
print last_item
else:
print nested_item
else:
print each_item
相关文章推荐
- 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
- 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
- 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问题系列--2】脚本运行出现语法错误: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
- 【已解决】Python脚本运行出现语法错误:IndentationError: unindent does not match any outer indentation level
- Python脚本运行出现语法错误:IndentationError: unindent does not match any outer indentation level