django使用Q查询 from django.db.models import Q books = Book.objects.filter(Q(title__icontains=key) | Q(author__icontains=key