靓仔      
    波澜   
  
时光荏苒,白驹过隙。且行且珍惜!!!   
摘要: 一般操作 https://docs.djangoproject.com/en/3.0/ref/models/querysets/ 官网 文档 https://www.cnblogs.com/study-learning/p/9969486.html 必知必会13条 <1> all(): 查询所有结果 阅读全文
posted @ 2020-05-09 11:44 可惜啊。 阅读(373) 评论(0) 推荐(0) 编辑
摘要: result= Booking.objects.filter(xxxx,xxxx,xxxx) count :获取提取的数据的个数。如果想要知道总共有多少条数据,那么建议使用 count ,而不是使用 len(articles) 这种。因为 count 在底层是使用 select count(*) 来 阅读全文
posted @ 2020-05-09 10:50 可惜啊。 阅读(2291) 评论(0) 推荐(0) 编辑