摘要: 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) 编辑