expected an indented block

 expected an indented block

     在初步使用Python的时候遇到了“ expected an indented block”报错信息,查询相关的博客得知是因为一款对缩进非常敏感的语言。

     在编译时会出现这样的错IndentationError:expected an indented block说明此处需要缩进,你只要在出现错误的那一行,按空格或Tab(但不能混用)键缩进就行。

 

 

参考地址:http://blog.csdn.net/neilhappy/article/details/7724959

posted @ 2016-11-28 10:12  悟知清风  阅读(1700)  评论(0编辑  收藏  举报