聚合函数的使用格式 导入模块 from django.db.models import 聚合类名称 聚合查询 模型类.objects.aggregate(聚合类名(字段)) 求平均值 Avg 获取 小结