movies=["the holy grail",1975,"terry jone & terry gilliam",91,
["graham chapman",
["michael palin","john cleese","terry gilliam",
"eric idle","terry jones"]]]
def print_lol(the_list):#定义一种函数
for each_item in the_list:#for in循环迭代处理列表,从列表起始位置到末尾
if isinstance(each_item,list):#isinstance()检测each_item里每一项
#是不是list类型
print_lol(each_item)#如果是,调用函数print_lol
else:print(each_item)#如果不是,输出这一项
print_lol(movies)#在movies列表中调用函数
"""
之前if else语句不对齐导致报错
"""