我在 python 中有一个缩进错误

i have a indentationerror in python

 while(cnt<=10):
 ... tweets = api.search(keyword)
 File "<stdin>", line 2
 tweets = api.search(keyword)
      ^
 IndentationError: expected an indented block

我不知道为什么会出现这个问题。请帮助

错误几乎说明了一切。要在此循环中执行的 while(...): 之后的每一行都需要以制表符/四个空格开头。