开发者社区 问答 正文

Python上的Redis操作问题

PythonShell上:
In [1]: db.lpush("hello","test")
Out[1]: 1L
In [2]: db.lrem("hello",0,"test")
Out[2]: 0L
redis-cli上:
`redis 127.0.0.1:6379> lrem hello 0 test
(integer) 1`

展开
收起
落地花开啦 2016-02-27 14:15:32 2336 分享 版权
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    你用反了
    db.lrem("hello", "test", 0);

    2019-07-17 18:48:48
    赞同 展开评论