查看django执行的sql语句及消耗时间的两种方法 下面介绍两种查看django执行的sql语句的方法。方法一:queryset=Apple.objects.all()printqueryset.queryS 执行SQL语句