Python 错误预期是一个缩进块

Python error expected an indented block

您好,对于我在描述我的问题时的错误,我们深表歉意。 这是我的小功能,所以我保存在文件名 nester.py

def print_lol(the_list):

  for each_item in the_list:    
    if isinstance(each_item,list):
        print_lol(each_item)
    else:
        print(each_item)

当我想使用它时按 F5。我在 Python 3.4.3 Shell.

中遇到上述错误

您在代码中混用了制表符和空格。所有块都应缩进 4 个空格。