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