Chinaunix

标题: 碰到IndentationError: expected an indented block错误 [打印本页]

作者: laohuanggua    时间: 2010-03-22 14:22
标题: 碰到IndentationError: expected an indented block错误
初学python,碰到了一个错误,求问如何解决?


>>> while a < 10:
... print a;
  File "<stdin>", line 2
    print a;
        ^
IndentationError: expected an indented block
作者: laohuanggua    时间: 2010-03-22 14:48
求援。。。。。
作者: luffy.deng    时间: 2010-03-22 14:51
IndentationError
作者: laohuanggua    时间: 2010-03-22 14:55
缩进错误,哪怕缩进一个空格也ok了。。。。囧~~~




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2