Python自动化之django orm之Q对象 什么是Q对象? Encapsulates filters as objects that can then be combined logically (using& and |) 关联查询 Poll.objects.get( Q(pub_date=date(2005, 5, 2)) | Q(pub_date=date(2005, 5, 6)), question__startswith='Who') AND AND def ceshi(requ…