摘要:
1.递归法: 阅读全文
摘要:
递归法实现: from django.shortcuts import render,HttpResponsefrom app01 import modelsclass Node: @staticmethod def digui(ret, row): for rt in ret: if rt['id'] == row['parent_id']: row['children'] = [] rt['c 阅读全文