📅  最后修改于: 2022-03-11 14:46:28.441000             🧑  作者: Mango
>>> from django.db.models import Q
>>> queryset = User.objects.filter(
Q(first_name__startswith='R') | Q(last_name__startswith='D')
)
>>> queryset
, , , , ]>