会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
xuqidong
博客园
首页
新随笔
联系
订阅
管理
2020年8月5日
递归和二分法
摘要: l=[1,[2,[3,[4,[5,[6,[7,[8,[9,[10,[11,]]]]]]]]]]] def search(l): for item in l: if type(item) is not list: # 不是列表直接打印 print(item) else: # 判断是列表则继续循环,判断
阅读全文
posted @ 2020-08-05 23:55 xuqidong
阅读(134)
评论(0)
推荐(0)
编辑
公告