📅  最后修改于: 2022-03-11 14:48:18.983000             🧑  作者: Mango
>>> from django.conf import settings
>>> settings.DEBUG = True
>>> from django.db import connection
>>> Model.objects.count()
>>> # python 3 uses print()
>>> print(len(connection.queries))
1