>>> 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

最新文章

  1. Centos 7 开启端口
  2. ref的用法
  3. SpringAOP使用扩展
  4. mysql 联合索引(转)
  5. poj 3255(次短路)
  6. Quartz Scheduler(2.2.1) - hello world
  7. Magento网站如何添加一个可配置产品
  8. 【HDOJ】2149 Public Sale
  9. [综合|基础|语法] 最新的皮肤帮助类 UI_Misc_Helper (转载)
  10. oracle之replace结合substr的使用
  11. form 表单练习
  12. SQL窗体函數一例
  13. Qt布局管理
  14. Android UI开发神兵利器之Android Asset Studio
  15. 【机器学习】代价函数(cost function)
  16. NSLog (Log信息的输出)
  17. 【NLP】Python实例:申报项目查重系统设计与实现
  18. [原创]浅谈JAVA在ACM中的应用
  19. python,列表,元祖,字典
  20. select2插件用法

热门文章

  1. c++有默认参数的函数---4
  2. codevs 1704 卡片游戏
  3. Codeforces Round #143 (Div. 2)
  4. kuangbin_ShortPath M (POJ 1062)
  5. CSS 通用原子类
  6. C# 矩阵计算
  7. C#中调用C++的dll的参数为指针类型的导出函数(包括二级指针的情况)
  8. C#中 ()=>的含义
  9. python_redis之篇
  10. HtmlAgilityPack