# 将其序列化from django.core import serializers customers = serializers.serialize("json", customers) 相关文章: