gpt4 book ai didi

python - 限制redis python中zrangbycore函数的最小最大值?

转载 作者:可可西里 更新时间:2023-11-01 11:22:12 25 4
gpt4 key购买 nike

在 Python 中有函数 zrangebyscore:

[zrangebyscore(self, name, min, max, start=None, num=None,withscores=False, score_cast_func=float)]

我想让排序集中的所有元素的分数 > min 并且没有限制 max这是如何工作的?

最佳答案

指定 min 作为要求的最低分数。将 max 指定为无穷大。

您可能想知道如何pass infinity to redis from python .

关于python - 限制redis python中zrangbycore函数的最小最大值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20876501/

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