Python 函数的创建和调用

>>> movies =[
"the holy grail", 1975,"terry jones",91,
["graham chapman",
["michel palin","john cheelse","terry gilliam","eric idle","terry jones"]]]
>>> def print_lol(the_list):
for each_item in the_list:
if isinstance(each_item,list):
print_lol(each_item)
else:
print(each_item) >>> print_lol(movies)
the holy grail
1975
terry jones
91
graham chapman
michel palin
john cheelse
terry gilliam
eric idle
terry jones
上一篇:【Android】读取sdcard卡上的全部图片而且显示,读取的过程有进度条显示


下一篇:Android——音乐播放器完善——进度条显示当前播放进度,加可拖动进度条(未待解决完问题)