摘要: 有个场景需要通过传入的列表遍历一个列表里每个字典并判断特定键值是否在允许的列表里. 通过迭代和计数来实现节点判断和遍历. 以下是实现方法 info = [ {'title': 'a', 'children': [{'title': 'a-1', 'children': []}]}, {'title' 阅读全文
posted @ 2021-11-24 11:13 nextkara 阅读(207) 评论(0) 推荐(0)