摘要: #q条件from django.db.models import Qq = Q(name__startswith="p") | Q(name__startswith="l") #or条件v =models.Book.objects.filter(q).values("name")print(v)#匹 阅读全文
posted @ 2017-03-19 13:31 李瑞鑫 阅读(1124) 评论(0) 推荐(0) 编辑