gpt4 book ai didi

python - Django Queryset 和 filter() 与 get()

转载 作者:太空狗 更新时间:2023-10-29 22:01:51 31 4
gpt4 key购买 nike

<分区>

过滤和获取有什么区别

    >>> Question.objects.filter(id=1)
<QuerySet [<Question: What's new?>]>
>>> Question.objects.get(pk=1)
<Question: What's new?>

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com